|
VoltMod
C++23 framework for CS2 server plugins
|
#include <HookResult.hpp>
Public Member Functions | |
| HookResult ()=default | |
| HookAction | Action () const noexcept |
| const void & | Value () const &noexcept |
Static Public Member Functions | |
| static HookResult | Block () |
| static HookResult | Replace (void value) |
Nothing to substitute, so there is no Replace: a void call either runs or it does not.
Definition at line 57 of file HookResult.hpp.
|
default |
Referenced by Block().
|
inlinenoexcept |
Definition at line 65 of file HookResult.hpp.
|
inlinestatic |
Skip the engine's own handler.
Definition at line 63 of file HookResult.hpp.
References VoltMod::Block, VoltMod::HookResult< Ret >::HookResult(), and HookResult().
|
inlinestatic |
Run the original, then return value rather than what it produced.
Definition at line 37 of file HookResult.hpp.
|
inlinenoexcept |
Meaningless unless Action is Replace or Block.
Definition at line 45 of file HookResult.hpp.