VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
ArgBinding.cpp File Reference
#include "Commands/ArgBinding.hpp"
#include <VoltMod/Core/Text/Strings.hpp>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  VoltMod
 

Functions

static ArgError VoltMod::TargetKey (const TargetFailure &failure, const std::string &token)
 
static std::expected< Args::Target, ArgError > VoltMod::BindTarget (ArgBinder &binder, const std::string &token, Player *caller)
 
static std::expected< Args::Targets, ArgError > VoltMod::BindTargets (ArgBinder &binder, const std::string &token, Player *caller)
 
static std::expected< Args::PlayerOrSteamId, ArgError > VoltMod::BindPlayerOrSteamId (ArgBinder &binder, const std::string &token, Player *caller)
 
static std::expected< Args::Duration, ArgError > VoltMod::BindDuration (const std::string &token)
 
static std::expected< Args::SteamId, ArgError > VoltMod::BindSteamId (const std::string &token)
 
static std::expected< Args::Int, ArgError > VoltMod::BindInt (const std::string &token)
 
static std::expected< Args::U64, ArgError > VoltMod::BindU64 (const std::string &token)
 
template<class T >
static std::optional< ArgError > VoltMod::Store (std::expected< T, ArgError > parsed, std::vector< BoundArg > &bound)
 
std::expected< std::vector< BoundArg >, ArgError > VoltMod::BindArgs (const CommandDefinition &def, std::span< const std::string > tokens, Player *caller, ArgBinder &binder)