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

◆ AddAction()

void AddAction ( typename actionName )
private

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

256 {
257 ActionBase action = ActionManagerBase.GetAction(actionName);
258
259 if (!action)
260 {
261 Debug.LogError("Action " + actionName + " dosn't exist!");
262 return;
263 }
264
265 typename ai = action.GetInputType();
266 if (!ai)
267 {
268 m_ActionsInitialize = false;
269 return;
270 }
271
272 array<ActionBase_Basic> action_array = m_InputActionMap.Get(ai);
273 if (!action_array)
274 {
275 action_array = new array<ActionBase_Basic>;
276 m_InputActionMap.Insert(ai, action_array);
277 }
278#ifdef ENABLE_LOGGING
280 {
281 Debug.ActionLog(action.ToString() + " -> " + ai, this.ToString() , "n/a", "Add action");
282 }
283#endif
284
285 if (action_array.Find(action) != -1)
286 {
287 Debug.Log("Action " + action.Type() + " already added to " + this + ", skipping!");
288 }
289 else
290 {
291 action_array.Insert(action);
292 }
293 }
void ActionBase()
Определения ActionBase.c:82
void ActionManagerBase(PlayerBase player)
Определения ActionManagerBase.c:63
TInputActionMap m_InputActionMap
Определения AdvancedCommunication.c:137
bool m_ActionsInitialize
Определения AdvancedCommunication.c:138
static void LogError(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message as error message.
Определения 3_Game/DayZ/tools/Debug.c:318
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
Определения 3_Game/DayZ/tools/Debug.c:183
static void ActionLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:188
Определения 3_Game/DayZ/tools/Debug.c:2
static bool IsActionLogEnable()
Определения 3_Game/DayZ/tools/Debug.c:749
Result for an object found in CGame.IsBoxCollidingGeometryProxy.

Перекрестные ссылки ActionBase(), Debug::ActionLog(), ActionManagerBase(), LogManager::IsActionLogEnable(), Debug::Log(), Debug::LogError(), m_ActionsInitialize и m_InputActionMap.