DayZ 1.24
Loading...
Searching...
No Matches
PMTF.c
Go to the documentation of this file.
1class PMTF : TestFramework
2{
3 private static int PM_CREATED = 0;
5
6 //---------------------------------------------------------------------------
7 // Manager management
8 //---------------------------------------------------------------------------
10 {
12 ++PM_CREATED;
13
14 return PM_CREATED - 1;
15 }
16
18 {
19 return m_Managers.Find(id, pm);
20 }
21
22 //---------------------------------------------------------------------------
23 // Prints
24 //---------------------------------------------------------------------------
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 //---------------------------------------------------------------------------
46}
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.
bool Assert(bool condition)
Definition Debug.c:14
static void ParticleLog(string message=LOG_DEFAULT, Managed caller=null, string function="", Managed entity=null)
Definition Debug.c:233
Definition PMTF.c:2
ref map< int, ref ParticleManager > m_Managers
Definition PMTF.c:4
bool GetManager(int id, out ParticleManager pm)
Definition PMTF.c:17
static int PM_CREATED
Definition PMTF.c:3
void PrintActiveStats()
Definition PMTF.c:32
void PrintPMStats(notnull ParticleManager pm)
Definition PMTF.c:25
int InsertManager(ParticleManager pm)
Definition PMTF.c:9
ParticleManager CreatePMFixedBlocking(int size)
Definition PMTF.c:42
Entity which has the particle instance as an ObjectComponent.
proto static native int GetStaticActiveCount()
Gets the amount of ParticleSource that are currently existing.