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

#include <PluginModule.hpp>

Public Member Functions

 PluginModule (PluginFactory factory)
 ~PluginModule ()
 PluginModule (const PluginModule &)=delete
PluginModule & operator= (const PluginModule &)=delete
bool Attach (IPluginContext &host, char *error, size_t errorSize) noexcept
void Detach () noexcept
const char * StatusJson () noexcept

Detailed Description

Owns the host connection, runtime, and one user plugin for each load cycle.

Definition at line 24 of file PluginModule.hpp.

Constructor & Destructor Documentation

◆ PluginModule() [1/2]

VoltMod::Internal::PluginModule::PluginModule ( PluginFactory factory)
inlineexplicit

Definition at line 27 of file PluginModule.hpp.

Referenced by VoltMod::Internal::MakePluginModule(), operator=(), and PluginModule().

◆ ~PluginModule()

VoltMod::Internal::PluginModule::~PluginModule ( )

Definition at line 29 of file Plugin.cpp.

References Detach().

◆ PluginModule() [2/2]

VoltMod::Internal::PluginModule::PluginModule ( const PluginModule & )
delete

References PluginModule().

Member Function Documentation

◆ Attach()

bool VoltMod::Internal::PluginModule::Attach ( IPluginContext & host,
char * error,
size_t errorSize )
noexcept

Definition at line 34 of file Plugin.cpp.

References VoltMod::Strings::CopyToBuffer().

◆ Detach()

void VoltMod::Internal::PluginModule::Detach ( )
noexcept

Definition at line 185 of file Plugin.cpp.

Referenced by ~PluginModule().

◆ operator=()

PluginModule & VoltMod::Internal::PluginModule::operator= ( const PluginModule & )
delete

References PluginModule(), and StatusJson().

◆ StatusJson()

const char * VoltMod::Internal::PluginModule::StatusJson ( )
noexcept

Definition at line 205 of file Plugin.cpp.

Referenced by operator=().


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