DayZ 1.29
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 g_Game.ObjectDelete(this); // Plants that exist without a garden must be deleted. Otherwise they might cause problems.
217 }
218 }
DayZGame g_Game
Определения DayZGame.c:3942
void OnStoreSaveCustom(ParamsWriteContext ctx)
Определения PlantBase.c:332
Slot GetSlot()
Определения PlantBase.c:656
proto bool Write(void value_out)
ErrorExSeverity
Определения EnDebug.c:62
enum ShapeType ErrorEx
vector GetPosition()
Get the world position of the Effect.
Определения Effect.c:473

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