DayZ 1.24
Loading...
Searching...
No Matches
ReplaceWithNewReciveCargoLambda Class Reference
Inheritance diagram for ReplaceWithNewReciveCargoLambda:
[legend]
Collaboration diagram for ReplaceWithNewReciveCargoLambda:
[legend]

Protected Member Functions

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

Protected Attributes

EntityAI m_ItemToCargo
 

Detailed Description

Definition at line 120 of file ActionPackGift.c.

Constructor & Destructor Documentation

◆ ReplaceWithNewReciveCargoLambda()

void ReplaceWithNewReciveCargoLambda::ReplaceWithNewReciveCargoLambda ( EntityAI old_item,
string new_item_type,
PlayerBase player,
EntityAI item_to_cargo )
inlineprotected

Definition at line 123 of file ActionPackGift.c.

References m_ItemToCargo.

Member Function Documentation

◆ OnSuccess()

override void ReplaceWithNewReciveCargoLambda::OnSuccess ( EntityAI new_item)
inlineprotected

Definition at line 128 of file ActionPackGift.c.

129 {
130 super.OnSuccess(new_item);
131
133 m_ItemToCargo.GetInventory().GetCurrentInventoryLocation(src);
135
136 dst.SetCargo(new_item, m_ItemToCargo, 0, 0, 0, false);
137
138 if (dst.IsValid())
139 {
140 if (GetGame().IsDedicatedServer())
141 m_Player.ServerTakeToDst(src, dst);
142 else
143 m_Player.LocalTakeToDst(src, dst);
144
145 }
146 }
DayZPlayer m_Player
Definition Hand_Events.c:42
InventoryLocation.
proto native CGame GetGame()

References GetGame(), m_ItemToCargo, and m_Player.

Member Data Documentation

◆ m_ItemToCargo

EntityAI ReplaceWithNewReciveCargoLambda::m_ItemToCargo
protected

Definition at line 122 of file ActionPackGift.c.

Referenced by OnSuccess(), and ReplaceWithNewReciveCargoLambda().


The documentation for this class was generated from the following file: