Engine calls this function to collect data from entity to store for persistence (on server side).
{
super.OnStoreSave(ctx);
int a = 5;
float b = 6.0;
}
void OnStoreSave(ParamsWriteContext ctx)
Engine calls this function to collect data from entity to store for persistence (on server side).
proto bool Write(void value_out)
Serializer ParamsWriteContext
См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 2925
2926 {
2927
2929 {
2930
2932
2933
2935
2936
2938
2939
2941
2942
2943
2945 int b1 = 0;
2946 int b2 = 0;
2947 int b3 = 0;
2948 int b4 = 0;
2949
2950 if (energy_source)
2951 {
2952 energy_source.GetPersistentID(b1, b2, b3, b4);
2953 }
2954
2959 }
2960
2961
2963 }
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
ComponentEnergyManager m_EM
void SaveVariables(ParamsWriteContext ctx)
Перекрестные ссылки EntityAI(), m_EM, SaveVariables() и Serializer::Write().