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
65 {
66 ChatCommandResult next = ArgInfo<NextType>::TryConsume(std::get<offset>(tuple), handler, args);
67 if (next)
68 return ConsumeFromOffset<Tuple, offset + 1>(tuple, handler, *next);
69 else
70 return next;
71 }
Definition: ChatCommandHelpers.h:101