VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
IPluginAddons.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
5
namespace
VoltMod
6
{
7
8
/** Workshop addons every connecting client must download, shared by all plugins. */
9
struct
IPluginAddons
10
{
11
/** Require @p addonId until a matching @ref Remove; false when nothing was added, as for id 0 or a listen
12
* server. */
13
virtual
bool
Add
(
uint64_t
addonId
) = 0;
14
virtual
void
Remove
(
uint64_t
addonId
) = 0;
15
16
/** Whether @p slot has every required addon. */
17
virtual
bool
IsReady
(
int
slot
) = 0;
18
19
protected
:
20
~IPluginAddons
() =
default
;
21
};
22
23
}
// namespace VoltMod
VoltMod
Definition
Options.hpp:13
VoltMod::ReadFile
static std::string ReadFile(const std::filesystem::path &path)
Definition
Loader.cpp:56
VoltMod::IPluginAddons
Definition
IPluginAddons.hpp:10
VoltMod::IPluginAddons::IsReady
virtual bool IsReady(int slot)=0
VoltMod::IPluginAddons::Add
virtual bool Add(uint64_t addonId)=0
VoltMod::IPluginAddons::~IPluginAddons
~IPluginAddons()=default
VoltMod::IPluginAddons::Remove
virtual void Remove(uint64_t addonId)=0
include
VoltMod
Host
IPluginAddons.hpp
Generated by
1.9.8