VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
Targeting.hpp File Reference
#include <VoltMod/Engine/Team.hpp>
#include <cstdint>
#include <expected>
#include <functional>
#include <span>
#include <string>
#include <string_view>
#include <vector>

Go to the source code of this file.

Classes

struct  VoltMod::TargetRules
 
struct  VoltMod::TargetFailure
 
struct  VoltMod::TargetQuery
 
struct  VoltMod::PlayerView
 

Namespaces

namespace  VoltMod
 

Enumerations

enum class  VoltMod::TargetError {
  VoltMod::NoMatch , VoltMod::Immune , VoltMod::Ambiguous , VoltMod::MultiNotAllowed ,
  VoltMod::DeadNotAllowed , VoltMod::BotNotAllowed
}
 
enum class  VoltMod::TargetKind {
  VoltMod::All , VoltMod::Me , VoltMod::NotMe , VoltMod::Team ,
  VoltMod::Dead , VoltMod::Alive , VoltMod::Bots , VoltMod::Humans ,
  VoltMod::Random , VoltMod::RandomTeam , VoltMod::Slot , VoltMod::SteamId ,
  VoltMod::Name
}
 

Functions

TargetQuery VoltMod::ParseTargetToken (std::string_view token)
 
std::expected< std::vector< int >, TargetFailure > VoltMod::FilterPlayers (std::span< const PlayerView > players, const TargetQuery &query, const TargetRules &rules, int callerSlot, const std::function< std::size_t(std::size_t)> &randomIndex)