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

◆ OnStoreSave()

override void InventoryItem::OnStoreSave ( ParamsWriteContext ctx)
inlineprotected

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

3222 {
3223 super.OnStoreSave(ctx);
3224
3225 PlayerBase player;
3226 if (PlayerBase.CastTo(player,GetHierarchyRootPlayer()))
3227 {
3228 ctx.Write(true); // Keep track of if we should actually read this in or not
3229 //Save quickbar item bind
3230 int itemQBIndex = -1;
3231 itemQBIndex = player.FindQuickBarEntityIndex(this);
3232 ctx.Write(itemQBIndex);
3233 }
3234 else
3235 {
3236 ctx.Write(false); // Keep track of if we should actually read this in or not
3237 }
3238
3239 SaveAgents(ctx);//agent trasmission system
3240
3241 RemotelyActivatedItemBehaviour raib = GetRemotelyActivatedItemBehaviour();
3242 if (raib)
3243 {
3244 raib.OnStoreSave(ctx);
3245 }
3246 }
override RemotelyActivatedItemBehaviour GetRemotelyActivatedItemBehaviour()
Определения RemoteDetonator.c:272
void SaveAgents(ParamsWriteContext ctx)
Определения ItemBase.c:4073
void OnStoreSave(ParamsWriteContext ctx)
proto bool Write(void value_out)

Перекрестные ссылки GetRemotelyActivatedItemBehaviour(), RemotelyActivatedItemBehaviour::OnStoreSave(), SaveAgents() и Serializer::Write().