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

◆ ActionConditionContinue()

override bool ActionWorldCraft::ActionConditionContinue ( ActionData action_data)
inlineprivate

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

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

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