198 {
199 super.OnStoreSave( ctx );
200
202
203 if (slot)
204 {
205 int slot_index = slot.GetSlotIndex();
206 slot.SetPlant(this);
207
208 ctx.
Write( slot_index );
209
211 }
212 else
213 {
215 Print(
"Warning! A plant existed without a garden. Therefore it was deleted from the world to prevent issues!");
216 }
217 }
void OnStoreSaveCustom(ParamsWriteContext ctx)
proto native void ObjectDelete(Object obj)
proto bool Write(void value_out)
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.