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

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
private

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

199 {
200 super.OnStoreSave( ctx );
201
202 Slot slot = GetSlot();
203
204 if (slot)
205 {
206 int slot_index = slot.GetSlotIndex();
207 slot.SetPlant(this); // hack
208
209 ctx.Write( slot_index );
210
211 OnStoreSaveCustom( ctx );
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 GetGame().ObjectDelete(this); // Plants that exist without a garden must be deleted. Otherwise they might cause problems.
217 }
218 }
void OnStoreSaveCustom(ParamsWriteContext ctx)
Определения PlantBase.c:332
Slot GetSlot()
Определения PlantBase.c:656
proto native void ObjectDelete(Object obj)
proto bool Write(void value_out)
proto native CGame GetGame()
ErrorExSeverity
Определения EnDebug.c:62
enum ShapeType ErrorEx
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9

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