DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
private

См. определение в файле PlantBase.c строка 197

198 {
199 super.OnStoreSave( ctx );
200
201 Slot slot = GetSlot();
202
203 if (slot)
204 {
205 int slot_index = slot.GetSlotIndex();
206 slot.SetPlant(this); // hack
207
208 ctx.Write( slot_index );
209
210 OnStoreSaveCustom( ctx );
211 }
212 else
213 {
214 GetGame().ObjectDelete(this); // Plants that exist without a garden must be deleted. Otherwise they might cause problems.
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)
Определения PlantBase.c:371
Slot GetSlot()
Определения PlantBase.c:721
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.

Перекрестные ссылки GetGame(), GetSlot(), CGame::ObjectDelete(), OnStoreSaveCustom(), Print() и Serializer::Write().