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

◆ OnStoreSave()

override void InventoryItem::OnStoreSave ( ParamsWriteContext ctx)
inlineprivate

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

3124 {
3125 super.OnStoreSave(ctx);
3126
3127 PlayerBase player;
3128 if (PlayerBase.CastTo(player,GetHierarchyRootPlayer()))
3129 {
3130 ctx.Write(true); // Keep track of if we should actually read this in or not
3131 //Save quickbar item bind
3132 int itemQBIndex = -1;
3133 itemQBIndex = player.FindQuickBarEntityIndex(this);
3134 ctx.Write(itemQBIndex);
3135 }
3136 else
3137 {
3138 ctx.Write(false); // Keep track of if we should actually read this in or not
3139 }
3140
3141 SaveAgents(ctx);//agent trasmission system
3142
3143 RemotelyActivatedItemBehaviour raib = GetRemotelyActivatedItemBehaviour();
3144 if (raib)
3145 {
3146 raib.OnStoreSave(ctx);
3147 }
3148 }
override RemotelyActivatedItemBehaviour GetRemotelyActivatedItemBehaviour()
Определения RemoteDetonator.c:272
void SaveAgents(ParamsWriteContext ctx)
Определения ItemBase.c:3953
void OnStoreSave(ParamsWriteContext ctx)
proto bool Write(void value_out)

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