Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ReplaceWithNewReciveCargoLambda
+ Граф наследования:ReplaceWithNewReciveCargoLambda:

Защищенные члены

void ReplaceWithNewReciveCargoLambda (EntityAI old_item, string new_item_type, PlayerBase player, EntityAI item_to_cargo)
 
override void OnSuccess (EntityAI new_item)
 

Защищенные данные

EntityAI m_ItemToCargo
 

Подробное описание

Конструктор(ы)

◆ ReplaceWithNewReciveCargoLambda()

void ReplaceWithNewReciveCargoLambda ( EntityAI old_item,
string new_item_type,
PlayerBase player,
EntityAI item_to_cargo )
inlineprotected
130 {
132 }
Definition EntityAI.c:95
EntityAI m_ItemToCargo
Definition ActionPackGift.c:128

Перекрестные ссылки m_ItemToCargo.

Методы

◆ OnSuccess()

override void OnSuccess ( EntityAI new_item)
inlineprotected
135 {
136 super.OnSuccess(new_item);
137
139 m_ItemToCargo.GetInventory().GetCurrentInventoryLocation(src);
141
142 dst.SetCargo(new_item, m_ItemToCargo, 0,0,0,false);
143
144 if ( dst.IsValid() )
145 {
146 if(GetGame().IsDedicatedServer())
147 m_Player.ServerTakeToDst(src,dst);
148 else
149 m_Player.LocalTakeToDst(src,dst);
150
151 }
152 }
DayZPlayer m_Player
Definition Hand_Events.c:42
InventoryLocation.
Definition InventoryLocation.c:28
proto native CGame GetGame()

Перекрестные ссылки GetGame(), m_ItemToCargo и m_Player.

Поля

◆ m_ItemToCargo

EntityAI m_ItemToCargo
protected

Используется в OnSuccess() и ReplaceWithNewReciveCargoLambda().


Объявления и описания членов класса находятся в файле: