DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ TestCleanup()

TFResult TestCleanup ( string f,
int p1 = 0 )

См. определение в файле PMTCreationAndCleanup.c строка 149

150 {
151 int pmTotal = ParticleManager.GetStaticActiveCount();
152 int psTotal = ParticleSource.GetStaticActiveCount();
153
154 PrintActiveStats();
155
156 TFResult res = CTFR();
157
158 GetGame().GameScript.CallFunction(this, f, res, p1);
159
160 int pmTotalPost = ParticleManager.GetStaticActiveCount();
161 int psTotalPost = ParticleSource.GetStaticActiveCount();
162
163 PrintActiveStats();
164
165 bool success = Assert(pmTotal == pmTotalPost);
166 success &= Assert(psTotal == psTotalPost);
167
168 return res.And(BTFR(success));
169 }
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Определения ParticleManager.c:88
TFResult CTFR()
Определения TestFramework.c:286
bool Assert(bool condition)
Определения TestFramework.c:262
void TFResult(TFR result)
Определения TestFramework.c:12
TFResult BTFR(bool result)
Определения TestFramework.c:278
ScriptModule GameScript
Определения Game.c:12
proto static native int GetStaticActiveCount()
Gets the amount of ParticleSource that are currently existing.
Entity which has the particle instance as an ObjectComponent.
Определения ParticleSource.c:124
proto native CGame GetGame()
proto volatile int CallFunction(Class inst, string function, out void returnVal, void parm)

Перекрестные ссылки Assert(), BTFR(), ScriptModule::CallFunction(), CTFR(), CGame::GameScript, GetGame(), ParticleSource::GetStaticActiveCount(), ParticleManager(), PMTF::PrintActiveStats() и TFResult().

Используется в TestCCSB().