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/Entities/EntityAI.c строка 2878
2879 {
2880
2882 {
2883
2885
2886
2888
2889
2891
2892
2894
2895
2896
2898 int b1 = 0;
2899 int b2 = 0;
2900 int b3 = 0;
2901 int b4 = 0;
2902
2903 if (energy_source)
2904 {
2905 energy_source.GetPersistentID(b1, b2, b3, b4);
2906 }
2907
2912 }
2913
2914
2916 }
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
ComponentEnergyManager m_EM
void SaveVariables(ParamsWriteContext ctx)
Перекрестные ссылки EntityAI(), m_EM, SaveVariables() и Serializer::Write().