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

◆ SetupAction()

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

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

145 {
146 if (super.SetupAction(player, target, item, action_data, extra_data))
147 {
149
150 if (!GetGame().IsDedicatedServer())
151 {
152 ConstructionActionData construction_action_data = action_data.m_Player.GetConstructionActionData();
153 BuildPartActionData.Cast(action_data).m_PartType = construction_action_data.GetBuildPartAtIndex(m_VariantID).GetPartName();
154 }
155 return true;
156 }
157
158 return false;
159 }
int m_VariantID
Определения ActionBase.c:68
void SetBuildingAnimation(ItemBase item)
Определения ActionBuildPart.c:161
ConstructionPart GetBuildPartAtIndex(int idx)
Определения ConstructionActionData.c:184
string GetPartName()
Определения ConstructionPart.c:30
proto native CGame GetGame()

Перекрестные ссылки ActionData, ActionTarget, ConstructionActionData::GetBuildPartAtIndex(), GetGame(), ConstructionPart::GetPartName(), ActionBase::m_VariantID и SetBuildingAnimation().