Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
pmtf.c
Go to the documentation of this file.
2 {
3  private static int PM_CREATED = 0;
5 
6  //---------------------------------------------------------------------------
7  // Manager management
8  //---------------------------------------------------------------------------
9  int InsertManager(ParticleManager pm)
10  {
11  Assert(m_Managers.Insert(PM_CREATED, pm));
12  ++PM_CREATED;
13 
14  return PM_CREATED - 1;
15  }
16 
17  bool GetManager(int id, out ParticleManager pm)
18  {
19  return m_Managers.Find(id, pm);
20  }
21 
22  //---------------------------------------------------------------------------
23  // Prints
24  //---------------------------------------------------------------------------
25  protected void PrintPMStats(notnull ParticleManager pm)
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  }
31 
32  protected void PrintActiveStats()
33  {
34  Debug.ParticleLog(string.Format(
35  "Active ParticleManagers: %1 | Active ParticleSources: %2", ParticleManager.GetStaticActiveCount(), ParticleSource.GetStaticActiveCount()),
36  this, "PrintActiveStats");
37  }
38 
39  //---------------------------------------------------------------------------
40  // Helpers
41  //---------------------------------------------------------------------------
42  protected ParticleManager CreatePMFixedBlocking(int size)
43  {
45  }
46 }
PMTF
Definition: pmtf.c:1
TestFramework
void TestFramework()
Definition: testframework.c:217
ParticleManagerSettingsFlags
ParticleManagerSettingsFlags
Flags for ParticleManagerSettings.
Definition: particlemanager.c:2
map
map
Definition: controlsxboxnew.c:3
ParticleManagerSettings
class ParticleManagerConstants ParticleManagerSettings(int poolSize, int flags=ParticleManagerSettingsFlags.NONE)
Settings given to ParticleManager on creation (in ctor)
Definition: particlemanager.c:35
Assert
protected bool Assert(bool condition)
Definition: testframework.c:262
ParticleSource
Entity which has the particle instance as an ObjectComponent.
Definition: particlesource.c:123
Debug
Definition: debug.c:13
ParticleManager
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Definition: particlemanager.c:84