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

◆ RegisterInputs()

void ActionManagerClient::RegisterInputs ( PlayerBase player)
inlineprotected

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

151 {
153 {
155
156 for (int i = 0; i < m_ActionsArray.Count(); i++)
157 {
158 ActionBase action = m_ActionsArray.Get(i);
159 typename input_type_name = action.GetInputType();
160 ref ActionInput ai;
161
162 ai = ActionInput.Cast(m_RegistredInputsMap.Get(input_type_name));
163 if (!ai)
164 {
165 ai = ActionInput.Cast(input_type_name.Spawn());
166 m_RegistredInputsMap.Insert(input_type_name, ai);
167 }
168 action.SetInput(ai);
169 }
170
171 for (int j = 0; j < m_RegistredInputsMap.Count(); j++)
172 {
173 m_RegistredInputsMap.GetElement(j).Init(player, this);
174 }
176 }
177
178 }
void ActionBase()
Определения ActionBase.c:82
static ref array< ref ActionBase > m_ActionsArray
Определения ActionManagerBase.c:50
map< typename, ref ActionInput > TTypeNameActionInputMap
Определения ActionManagerClient.c:2
void SetActioninputOrder()
Определения ActionManagerClient.c:181
ref TTypeNameActionInputMap m_RegistredInputsMap
Определения ActionManagerClient.c:13

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

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