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

◆ OnCEIterate()

void Entity::OnCEIterate ( float currentTime,
float elapsedTime )
inlineprotected

Central economy calls this function whenever going over all the entities.

void OnCEIterate(float currentTime, float elapsedTime)
{
// dont forget to propagate this call trough class hierarchy! - always at the start of the function
super.OnCEIterate(currentTime, elapsedTime);
}
void OnCEIterate(float currentTime, float elapsedTime)
Central economy calls this function whenever going over all the entities.

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

3905 {
3906 ProcessVariables(elapsedTime);
3907
3908 ConstructionBasic constructionComponent = GetConstructionBasic();
3909 if (constructionComponent && ConstructionBasic.CanConstructionDecay() && GetAllowDamage()) //checks if server allows damage AND decay
3910 constructionComponent.ProcessConstructionDecay(elapsedTime);
3911 }
void ProcessConstructionDecay(float dTime)
void ProcessVariables(float elapsedTime)
ConstructionBasic GetConstructionBasic()
Construction itself is defined on module 4. Workaround. Don't forget to cast!

Перекрестные ссылки ConstructionBasic::CanConstructionDecay(), GetConstructionBasic(), ConstructionBasic::ProcessConstructionDecay() и ProcessVariables().