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.

◆ ~PluginModule()

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

Definition at line 28 of file Plugin.cpp.

References Detach().

◆ PluginModule() [2/2]

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

Member Function Documentation

◆ Attach()

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

Definition at line 33 of file Plugin.cpp.

References VoltMod::Strings::CopyToBuffer(), and VoltMod::ReadFile().

◆ Detach()

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

Definition at line 191 of file Plugin.cpp.

Referenced by ~PluginModule().

◆ operator=()

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

◆ StatusJson()

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

Definition at line 211 of file Plugin.cpp.


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