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

◆ GetDebugText()

string Entity::GetDebugText ( )
inlineprotected

См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 3295

3296 {
3297 string text = string.Empty;
3298
3299 text += "Weight: " + GetWeightEx() + "\n";
3300 text += "Disabled: " + GetIsSimulationDisabled() + "\n";
3301 #ifdef SERVER
3302 if (GetEconomyProfile())
3303 text += "CE Lifetime default: " + (int)GetEconomyProfile().GetLifetime() + "\n";
3304 text += "CE Lifetime remaining: " + (int)GetLifetime() + "\n";
3305 #endif
3306
3307 ComponentEnergyManager compEM = GetCompEM();
3308 if (compEM)
3309 {
3310 text += "Energy Source: " + Object.GetDebugName(compEM.GetEnergySource()) + "\n";
3311 text += "Switched On: " + compEM.IsSwitchedOn() + "\n";
3312 text += "Is Working: " + compEM.IsWorking() + "\n";
3313 }
3314
3315 return text;
3316 }
ActionOverrideData int
proto native float GetLifetime()
bool IsWorking()
Energy manager: Returns true if this device is working right now.
Определения ComponentEnergyManager.c:925
EntityAI GetEnergySource()
Energy manager: Returns the energy source this device is plugged into.
Определения ComponentEnergyManager.c:1324
bool IsSwitchedOn()
Energy manager: Returns state of the switch. Whenever the device is working or not does not matter....
Определения ComponentEnergyManager.c:884
float GetWeightEx(bool forceRecalc=false)
returns overall weight of the entity, 'forceRecalc = true' is meant to be used only when debugging,...
proto native float GetLifetime()
Get remaining economy lifetime (seconds)
proto native CEItemProfile GetEconomyProfile()
Get economy item profile (if assigned, otherwise null)
ComponentEnergyManager GetCompEM()
class LOD Object

Перекрестные ссылки string::Empty, GetCompEM(), GetEconomyProfile(), ComponentEnergyManager::GetEnergySource(), GetLifetime(), GetWeightEx(), int, ComponentEnergyManager::IsSwitchedOn(), ComponentEnergyManager::IsWorking() и Object.