|
VoltMod
C++23 framework for CS2 server plugins
|
#include <Precache.hpp>
Public Member Functions | |
| void | Add (std::string_view path) |
| void | WriteTo (IEntityResourceManifest &manifest) const |
The models, particles and sound events a plugin ships, loaded with every map. A path loads from the next map on, and clients need the file too, such as from a workshop addon.
Definition at line 13 of file Precache.hpp.
| void VoltMod::Precache::Add | ( | std::string_view | path | ) |
Queues path, such as "particles/foo.vpcf". Empty paths and repeats are skipped.
Definition at line 17 of file Precache.cpp.
| void VoltMod::Precache::WriteTo | ( | IEntityResourceManifest & | manifest | ) | const |
Lists every queued path in manifest; the framework calls it as the engine builds a map's.
Definition at line 32 of file Precache.cpp.
References VoltMod::Log::Info(), and VoltMod::ReadFile().