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

◆ SetupAction()

override bool ActionBuildShelter::SetupAction ( PlayerBase player,
ActionTarget target,
ItemBase item,
out ActionData action_data,
Param extra_data = NULL )
inlineprotected

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

133 {
134 if ( super.SetupAction( player, target, item, action_data, extra_data ) )
135 {
136 if ( !g_Game.IsDedicatedServer() )
137 {
138 ConstructionActionData construction_action_data = action_data.m_Player.GetConstructionActionData();
139 BuildPartActionData.Cast(action_data).m_PartType = construction_action_data.GetBuildPartNoToolAtIndex(m_VariantID).GetPartName();
140 }
141 return true;
142 }
143
144 return false;
145 }
int m_VariantID
Определения ActionBase.c:67
DayZGame g_Game
Определения DayZGame.c:4074
ConstructionPart GetBuildPartNoToolAtIndex(int idx)
Определения ConstructionActionData.c:355
string GetPartName()
Определения ConstructionPart.c:198

Перекрестные ссылки ActionTarget(), g_Game, ConstructionActionData::GetBuildPartNoToolAtIndex(), ConstructionPart::GetPartName() и m_VariantID.