DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
◆
Cast()
static proto
Class
Class::Cast
(
Class
from
)
static
private
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!
}
g_Game
DayZGame g_Game
Определения
DayZGame.c:3868
Object
Определения
ObjectTyped.c:2
Class
Создано системой
1.13.2