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
5namespace VoltMod
6{
7
8/** Workshop addons every connecting client must download, shared by all plugins. */
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
19protected:
20 ~IPluginAddons() = default;
21};
22
23} // namespace VoltMod
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56
virtual bool IsReady(int slot)=0
virtual bool Add(uint64_t addonId)=0
virtual void Remove(uint64_t addonId)=0