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

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )

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

30 {
31 PluginRepairing moduleRepairing;
32 Class.CastTo(moduleRepairing, GetPlugin(PluginRepairing));
33 Blowtorch bt = Blowtorch.Cast(item);
34
35 return bt.HasEnoughEnergyForRepair(UATimeSpent.BASEBUILDING_REPAIR_MEDIUM) && moduleRepairing && moduleRepairing.CanRepair(item, target.GetObject());
36 }
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:316
Super root of all classes in Enforce script.
Определения EnScript.c:11
const float BASEBUILDING_REPAIR_MEDIUM
Определения ActionConstants.c:68
Определения ActionConstants.c:28
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки ActionTarget, UATimeSpent::BASEBUILDING_REPAIR_MEDIUM, Class::CastTo() и GetPlugin().