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

◆ ActionConditionContinue()

override bool ActionWorldCraft::ActionConditionContinue ( ActionData action_data)
inlineprivate

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

90 {
91 if (GetGame().IsServer())
92 {
93 if (!action_data.m_Target.GetObject() || !action_data.m_MainItem)
94 return false;
95
96 PluginRecipesManager moduleRecipesManager;
97 Class.CastTo(moduleRecipesManager, GetPlugin(PluginRecipesManager) );
98
99 WorldCraftActionData action_data_wc = WorldCraftActionData.Cast(action_data);
100
101 ItemBase item2;
102 Class.CastTo(item2, action_data_wc.m_Target.GetObject());
103 if(!moduleRecipesManager.IsRecipePossibleToPerform(action_data_wc.m_RecipeID, action_data.m_MainItem, item2, action_data.m_Player))
104 {
105 return false;
106 }
107 }
108
109 return true;
110 }
class GP5GasMask extends MaskBase ItemBase
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:316
proto native CGame GetGame()

Перекрестные ссылки ActionData, Class::CastTo(), GetGame() и GetPlugin().