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

◆ CopyOldPropertiesToNew()

override void CopyOldPropertiesToNew ( notnull EntityAI old_item,
EntityAI new_item )

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

59 {
60 super.CopyOldPropertiesToNew(old_item, new_item);
61
62 ItemBase unboxed;
63 Class.CastTo(unboxed, new_item);
64 unboxed.SetQuantity(m_ItemCount);
65 }
class SeedPackBase extends Inventory_Base m_ItemCount
Super root of all classes in Enforce script.
Определения EnScript.c:11
override bool SetQuantity(float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
Определения PileOfWoodenPlanks.c:88
Определения InventoryItem.c:731
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo(), m_ItemCount и ItemBase::SetQuantity().