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

Закрытые члены

void UnboxLambda (EntityAI old_item, string new_item_type, PlayerBase player, int count)
 
override void CopyOldPropertiesToNew (notnull EntityAI old_item, EntityAI new_item)
 
override void OnSuccess (EntityAI new_item)
 
- Закрытые члены унаследованные от ReplaceItemWithNewLambdaBase
bool WantCreateNewEntity ()
 
bool CanExecuteLambda ()
 
bool PrepareLocations ()
 Step A. - prepare inventory locations.
 
void RemoveOldItemFromLocation ()
 Step B. - free location for new item @NOTE this operation does not delete the object, only removes it from inventory location.
 
void UndoRemoveOldItemFromLocation ()
 
void RemoveNetworkObjectInfo ()
 Step C. - remove network part of the object @NOTE this operation does not delete the object, only removes its network part (and deletes it on client)
 
void UndoRemoveNetworkObjectInfo ()
 
EntityAI CreateNewEntity ()
 Step D. - create new entity (LOCAL) with specified type.
 
void CopyOldPropertiesToNew (notnull EntityAI old_item, EntityAI new_item)
 Step E. copy properties from old object to the created one.
 
void DeleteOldEntity ()
 Step F. - deletes physically old item.
 
void CreateNetworkObjectInfo (EntityAI new_item)
 Step G. - create NetworkObjectInfo for new item.
 
void OnSuccess (EntityAI new_item)
 Step H. - notification on finish.
 
void OnAbort ()
 Step Out - notification on abort.
 
void Execute (HumanInventoryWithFSM fsm_to_notify=null)
 
string DumpToString ()
 

Закрытые данные

int m_ItemCount
 
- Закрытые данные унаследованные от ReplaceItemWithNewLambdaBase
ref InventoryLocation m_OldLocation
 
ref InventoryLocation m_NewLocation
 
bool m_RemoveFromLocationPassed = false
 

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

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

◆ UnboxLambda()

void UnboxLambda ( EntityAI old_item,
string new_item_type,
PlayerBase player,
int count )
inlineprivate
75{ m_ItemCount = count; }
Definition EntityAI.c:95
int m_ItemCount
Definition ActionUnpackBox.c:74

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

Методы

◆ CopyOldPropertiesToNew()

override void CopyOldPropertiesToNew ( notnull EntityAI old_item,
EntityAI new_item )
inlineprivate
78 {
79 super.CopyOldPropertiesToNew(old_item, new_item);
80
81 if ( GetGame().ConfigIsExisting( "CfgMagazines " + m_NewItemType ) )
82 {
85 pile.ServerSetAmmoCount(m_ItemCount);
86 }
87 else
88 {
91 unboxed.SetQuantity(m_ItemCount);
92 }
93 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition InventoryItem.c:731
string m_NewItemType
Definition ReplaceItemWithNewLambdaBase.c:7
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo(), GetGame(), m_ItemCount и ReplaceItemWithNewLambdaBase::m_NewItemType.

◆ OnSuccess()

override void OnSuccess ( EntityAI new_item)
inlineprivate
96 {
97 super.OnSuccess(new_item);
98
99 //spawns wrapping Paper
100 ItemBase paper = ItemBase.Cast( GetGame().CreateObjectEx("Paper", new_item.GetHierarchyRoot().GetPosition(), ECE_PLACE_ON_SURFACE) );
101 }
const int ECE_PLACE_ON_SURFACE
Definition CentralEconomy.c:37

Перекрестные ссылки ECE_PLACE_ON_SURFACE и GetGame().

Поля

◆ m_ItemCount

int m_ItemCount
private

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


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