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

◆ RegisterInputs()

void ActionManagerClient::RegisterInputs ( PlayerBase player)
inlineprotected

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

139 {
141 {
143
144 for (int i = 0; i < m_ActionsArray.Count(); i++)
145 {
146 ActionBase action = m_ActionsArray.Get(i);
147 typename input_type_name = action.GetInputType();
148 ref ActionInput ai;
149
150 ai = ActionInput.Cast(m_RegistredInputsMap.Get(input_type_name));
151 if (!ai)
152 {
153 ai = ActionInput.Cast(input_type_name.Spawn());
154 m_RegistredInputsMap.Insert(input_type_name, ai);
155 }
156 action.SetInput(ai);
157 }
158
159 for (int j = 0; j < m_RegistredInputsMap.Count(); j++)
160 {
161 m_RegistredInputsMap.GetElement(j).Init(player, this);
162 }
164 }
165
166 }
static ref array< ref ActionBase > m_ActionsArray
Определения ActionManagerBase.c:50
map< typename, ref ActionInput > TTypeNameActionInputMap
Определения ActionManagerClient.c:2
GetInputType()
Определения ActionBase.c:215
void SetInput(ActionInput ai)
Определения ActionBase.c:220
void SetActioninputOrder()
Определения ActionManagerClient.c:169
ref TTypeNameActionInputMap m_RegistredInputsMap
Определения ActionManagerClient.c:13

Перекрестные ссылки ActionBase::GetInputType(), m_ActionsArray, m_RegistredInputsMap, SetActioninputOrder() и ActionBase::SetInput().

Используется в ActionManagerClient().