VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::EnabledCondition Class Reference

#include <MenuBuilder.hpp>

Public Member Functions

 EnabledCondition ()=default
 
 EnabledCondition (bool value)
 
template<std::predicate< int > Predicate>
requires (!std::same_as<std::remove_cvref_t<Predicate>, EnabledCondition>)
 EnabledCondition (Predicate predicate)
 
bool operator() (int slot) const
 

Detailed Description

Fixed or dynamically evaluated enabled state.

Definition at line 19 of file MenuBuilder.hpp.

Constructor & Destructor Documentation

◆ EnabledCondition() [1/3]

VoltMod::EnabledCondition::EnabledCondition ( )
default

◆ EnabledCondition() [2/3]

VoltMod::EnabledCondition::EnabledCondition ( bool  value)
inline

Definition at line 23 of file MenuBuilder.hpp.

◆ EnabledCondition() [3/3]

template<std::predicate< int > Predicate>
requires (!std::same_as<std::remove_cvref_t<Predicate>, EnabledCondition>)
VoltMod::EnabledCondition::EnabledCondition ( Predicate  predicate)
inline

Definition at line 26 of file MenuBuilder.hpp.

Member Function Documentation

◆ operator()()

bool VoltMod::EnabledCondition::operator() ( int  slot) const
inline

Definition at line 29 of file MenuBuilder.hpp.

References VoltMod::ReadFile().


The documentation for this class was generated from the following file: