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

#include <Precache.hpp>

Public Member Functions

void Add (std::string_view path)
 
void WriteTo (IEntityResourceManifest &manifest) const
 

Detailed Description

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.

Member Function Documentation

◆ Add()

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.

◆ WriteTo()

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().


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