DayZ 1.24
Loading...
Searching...
No Matches
PMTF Class Reference
Inheritance diagram for PMTF:
[legend]
Collaboration diagram for PMTF:
[legend]

Protected Member Functions

void PrintPMStats (notnull ParticleManager pm)
 
void PrintActiveStats ()
 
ParticleManager CreatePMFixedBlocking (int size)
 

Private Member Functions

int InsertManager (ParticleManager pm)
 
bool GetManager (int id, out ParticleManager pm)
 

Private Attributes

ref map< int, ref ParticleManagerm_Managers = new map<int, ref ParticleManager>()
 

Static Private Attributes

static int PM_CREATED = 0
 

Detailed Description

Definition at line 1 of file PMTF.c.

Member Function Documentation

◆ CreatePMFixedBlocking()

ParticleManager PMTF::CreatePMFixedBlocking ( int size)
inlineprotected

Definition at line 42 of file PMTF.c.

43 {
45 }
class ParticleManagerConstants ParticleManagerSettings(int poolSize, int flags=ParticleManagerSettingsFlags.NONE)
Settings given to ParticleManager on creation (in ctor)
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
ParticleManagerSettingsFlags
Flags for ParticleManagerSettings.

References ParticleManager(), and ParticleManagerSettings().

Referenced by TestCreationSmallBlocking(), PMTPlayback::TestOnePlaying(), and TestOwnership().

◆ GetManager()

bool PMTF::GetManager ( int id,
out ParticleManager pm )
inlineprivate

Definition at line 17 of file PMTF.c.

18 {
19 return m_Managers.Find(id, pm);
20 }
ref map< int, ref ParticleManager > m_Managers
Definition PMTF.c:4

References m_Managers.

Referenced by PMTPlayback::CheckOnePlaying(), and CheckTestEvents().

◆ InsertManager()

int PMTF::InsertManager ( ParticleManager pm)
inlineprivate

Definition at line 9 of file PMTF.c.

10 {
12 ++PM_CREATED;
13
14 return PM_CREATED - 1;
15 }
bool Assert(bool condition)
static int PM_CREATED
Definition PMTF.c:3

References Assert(), m_Managers, and PM_CREATED.

Referenced by TestEvents(), PMTPlayback::TestOnePlaying(), and TestOwnership().

◆ PrintActiveStats()

void PMTF::PrintActiveStats ( )
inlineprotected

Definition at line 32 of file PMTF.c.

33 {
34 Debug.ParticleLog(string.Format(
35 "Active ParticleManagers: %1 | Active ParticleSources: %2", ParticleManager.GetStaticActiveCount(), ParticleSource.GetStaticActiveCount()),
36 this, "PrintActiveStats");
37 }
Definition Debug.c:14
static void ParticleLog(string message=LOG_DEFAULT, Managed caller=null, string function="", Managed entity=null)
Definition Debug.c:233
Entity which has the particle instance as an ObjectComponent.
proto static native int GetStaticActiveCount()
Gets the amount of ParticleSource that are currently existing.

References ParticleSource::GetStaticActiveCount(), Debug::ParticleLog(), and ParticleManager().

Referenced by TestCleanup().

◆ PrintPMStats()

void PMTF::PrintPMStats ( notnull ParticleManager pm)
inlineprotected

Definition at line 25 of file PMTF.c.

26 {
27 Debug.ParticleLog(string.Format(
28 "Poolsize: %1 | Allocated: %2 | Virtual: %3 | Playing: %4", pm.GetPoolSize(), pm.GetAllocatedCount(), pm.GetVirtualCount(), pm.GetPlayingCount()),
29 this, "PrintPMStats", pm);
30 }

References Debug::ParticleLog().

Referenced by TestCreationSmallBlocking().

Member Data Documentation

◆ m_Managers

ref map<int, ref ParticleManager> PMTF::m_Managers = new map<int, ref ParticleManager>()
private

Definition at line 4 of file PMTF.c.

Referenced by GetManager(), and InsertManager().

◆ PM_CREATED

int PMTF::PM_CREATED = 0
staticprivate

Definition at line 3 of file PMTF.c.

Referenced by InsertManager().


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