См. определение в файле PlantBase.c строка 198
199 {
200 super.OnStoreSave( ctx );
201
203
204 if (slot)
205 {
206 int slot_index = slot.GetSlotIndex();
207 slot.SetPlant(this);
208
209 ctx.
Write( slot_index );
210
212 }
213 else
214 {
215 ErrorEx(
"[Warning] A plant existed without a garden. Therefore it was deleted from the world to prevent issues! Position: " +
GetPosition(),
ErrorExSeverity.INFO);
216 g_Game.ObjectDelete(
this);
217 }
218 }
void OnStoreSaveCustom(ParamsWriteContext ctx)
proto bool Write(void value_out)
vector GetPosition()
Get the world position of the Effect.
Перекрестные ссылки ErrorEx, g_Game, GetPosition(), GetSlot(), OnStoreSaveCustom() и Serializer::Write().