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

◆ OnStoreSave()

override void InventoryItem::OnStoreSave ( ParamsWriteContext ctx)
inlineprotected

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

3194 {
3195 super.OnStoreSave(ctx);
3196
3197 PlayerBase player;
3198 if (PlayerBase.CastTo(player,GetHierarchyRootPlayer()))
3199 {
3200 ctx.Write(true); // Keep track of if we should actually read this in or not
3201 //Save quickbar item bind
3202 int itemQBIndex = -1;
3203 itemQBIndex = player.FindQuickBarEntityIndex(this);
3204 ctx.Write(itemQBIndex);
3205 }
3206 else
3207 {
3208 ctx.Write(false); // Keep track of if we should actually read this in or not
3209 }
3210
3211 SaveAgents(ctx);//agent trasmission system
3212
3213 RemotelyActivatedItemBehaviour raib = GetRemotelyActivatedItemBehaviour();
3214 if (raib)
3215 {
3216 raib.OnStoreSave(ctx);
3217 }
3218 }
override RemotelyActivatedItemBehaviour GetRemotelyActivatedItemBehaviour()
Определения RemoteDetonator.c:272
void SaveAgents(ParamsWriteContext ctx)
Определения ItemBase.c:4023
void OnStoreSave(ParamsWriteContext ctx)
proto bool Write(void value_out)

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