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

◆ IsAuthoritative()

bool IsAuthoritative ( )
protected

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

171 {
172 DayZPlayer player;
173 if (!Class.CastTo(player, GetInventoryOwner()))
174 {
175 return false;
176 }
177
178 return (player.GetInstanceType() != DayZPlayerInstanceType.INSTANCETYPE_CLIENT && player.GetInstanceType() != DayZPlayerInstanceType.INSTANCETYPE_REMOTE);
179 }
Super root of all classes in Enforce script.
Определения EnScript.c:11
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1068
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo().