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

◆ ReadVarsFromCTX()

bool Entity::ReadVarsFromCTX ( ParamsReadContext ctx,
int version = -1 )
inlineprotected

Reads from storage CTX.

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

3164 {
3165 if (version < 140)
3166 return true;
3167
3168 int intValue;
3169 float value;
3170
3171 if (!ctx.Read(intValue))
3172 return false;
3173
3174 m_VariablesMask = intValue; //necessary for higher implement overrides. Hope it does not bork some init somewhere.
3175
3176 //--------------------------------------------
3178 {
3179 if (!ctx.Read(value))
3180 return false;
3181 SetTemperatureDirect(value);
3182
3183 if (!ctx.Read(intValue))
3184 return false;
3185 SetFrozen(intValue);
3186 }
3187
3188 return true;
3189 }
void SetFrozen(bool frozen)
Определения EntityAI.c:2494
int m_VariablesMask
Определения EntityAI.c:144
void SetTemperatureDirect(float value, bool allow_client=false)
Определения EntityAI.c:2262
proto bool Read(void value_in)
const int VARIABLE_TEMPERATURE
Определения constants.c:628

Перекрестные ссылки m_VariablesMask, Serializer::Read(), SetFrozen(), SetTemperatureDirect() и VARIABLE_TEMPERATURE.