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

One layout's player screens, each created the first time something draws for that slot. More...

#include <PlayerScreens.hpp>

Public Member Functions

 PlayerScreens (ScreenManager &screens, std::string layout)
 
Screen & For (int slot)
 
Screen * Find (int slot)
 

Detailed Description

One layout's player screens, each created the first time something draws for that slot.

A player screen costs an entity, so this makes one per player who is actually shown the layout rather than one per connected player. A screen removes its entity when its slot changes hands and respawns for the next player on Screen::EnsureSpawned.

Definition at line 19 of file PlayerScreens.hpp.

Constructor & Destructor Documentation

◆ PlayerScreens()

VoltMod::PlayerScreens::PlayerScreens ( ScreenManager &  screens,
std::string  layout 
)

screens must outlive this.

Definition at line 9 of file PlayerScreens.cpp.

Member Function Documentation

◆ Find()

Screen * VoltMod::PlayerScreens::Find ( int  slot)

slot's screen if one was created, or null. Never creates.

Definition at line 33 of file PlayerScreens.cpp.

References VoltMod::IsValidSlot(), and VoltMod::ReadFile().

Referenced by VoltMod::PanoramaMenuLayout::Hide().

◆ For()


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