AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::Impl::ChatCommands::MultiConsumer< Tuple, NextType, offset > Struct Template Reference

#include "ChatCommand.h"

Static Public Member Functions

static ChatCommandResult TryConsumeTo (Tuple &tuple, ChatHandler const *handler, std::string_view args)
 

Detailed Description

template<typename Tuple, typename NextType, std::size_t offset>
struct Acore::Impl::ChatCommands::MultiConsumer< Tuple, NextType, offset >

Member Function Documentation

◆ TryConsumeTo()

template<typename Tuple , typename NextType , std::size_t offset>
static ChatCommandResult Acore::Impl::ChatCommands::MultiConsumer< Tuple, NextType, offset >::TryConsumeTo ( Tuple &  tuple,
ChatHandler const *  handler,
std::string_view  args 
)
inlinestatic
62 {
63 ChatCommandResult next = ArgInfo<NextType>::TryConsume(std::get<offset>(tuple), handler, args);
64 if (next)
65 return ConsumeFromOffset<Tuple, offset + 1>(tuple, handler, *next);
66 else
67 return next;
68 }
Definition: ChatCommandHelpers.h:100