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
См. определение в файле EntityAI.c строка 2876
2877 {
2878
2880 {
2881
2883
2884
2886
2887
2889
2890
2892
2893
2894
2896 int b1 = 0;
2897 int b2 = 0;
2898 int b3 = 0;
2899 int b4 = 0;
2900
2901 if (energy_source)
2902 {
2903 energy_source.GetPersistentID(b1, b2, b3, b4);
2904 }
2905
2910 }
2911
2912
2914 }
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
ComponentEnergyManager m_EM
void SaveVariables(ParamsWriteContext ctx)
Перекрестные ссылки EntityAI(), m_EM, SaveVariables() и Serializer::Write().