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

◆ Cast()

static proto Class Class::Cast ( Class from)
staticprivate

Try to safely down-cast base class to child class.

Возвращает
down-casted 'from' pointer when cast is successfull (classes are related), or null if casting is invalid
// assume that Man inheites from Object
Object obj = g_Game.GetPlayer();
Man player = Man.Cast(obj);
if (player)
{
// horay!
}
DayZGame g_Game
Определения DayZGame.c:3868
Определения ObjectTyped.c:2