VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::HookResult< void > Class Reference

#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)

Detailed Description

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.

Constructor & Destructor Documentation

◆ HookResult()

VoltMod::HookResult< void >::HookResult ( )
default

Referenced by Block().

Member Function Documentation

◆ Action()

HookAction VoltMod::HookResult< void >::Action ( ) const
inlinenoexcept

Definition at line 65 of file HookResult.hpp.

◆ Block()

HookResult VoltMod::HookResult< void >::Block ( )
inlinestatic

Skip the engine's own handler.

Definition at line 63 of file HookResult.hpp.

References VoltMod::Block, VoltMod::HookResult< Ret >::HookResult(), and HookResult().

◆ Replace()

HookResult VoltMod::HookResult< void >::Replace ( void value)
inlinestatic

Run the original, then return value rather than what it produced.

Definition at line 37 of file HookResult.hpp.

◆ Value()

const void & VoltMod::HookResult< void >::Value ( ) const &
inlinenoexcept

Meaningless unless Action is Replace or Block.

Definition at line 45 of file HookResult.hpp.


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