#include <C4PlayerControl.h>
Classes | |
struct | CInternalCons |
Public Member Functions | |
void | UpdateInternalCons () |
C4PlayerControlDefs ()=default | |
~C4PlayerControlDefs ()=default | |
void | Clear () |
void | CompileFunc (StdCompiler *pComp) |
void | MergeFrom (const C4PlayerControlDefs &Src) |
void | FinalInit () |
const C4PlayerControlDef * | GetControlByIndex (int32_t idx) const |
int32_t | GetControlIndexByIdentifier (const char *szIdentifier) const |
size_t | GetCount () const |
bool | operator== (const C4PlayerControlDefs &cmp) const |
Public Attributes | |
struct C4PlayerControlDefs::CInternalCons | InternalCons |
Definition at line 96 of file C4PlayerControl.h.
|
default |
|
default |
void C4PlayerControlDefs::Clear | ( | ) |
Definition at line 114 of file C4PlayerControl.cpp.
References UpdateInternalCons().
Referenced by C4PlayerControlFile::Clear(), and C4Game::Clear().
void C4PlayerControlDefs::CompileFunc | ( | StdCompiler * | pComp | ) |
Definition at line 121 of file C4PlayerControl.cpp.
References StdCompiler::isDeserializer(), mkNamingAdapt(), mkSTLContainerAdapt(), StdCompiler::SEP_NONE, UpdateInternalCons(), and StdCompiler::Value().
void C4PlayerControlDefs::FinalInit | ( | ) |
Definition at line 165 of file C4PlayerControl.cpp.
References C4VInt(), FormatString(), C4AulScriptEngine::RegisterGlobalConstant(), ScriptEngine, and SEqual().
const C4PlayerControlDef * C4PlayerControlDefs::GetControlByIndex | ( | int32_t | idx | ) | const |
Definition at line 150 of file C4PlayerControl.cpp.
Referenced by C4PlayerControlAssignmentSet::GetAssignmentsByKey(), C4PlayerControlAssignment::GetGUIDesc(), C4PlayerControlAssignment::GetGUIName(), C4PlayerControlAssignmentSet::GetTriggerKeys(), and C4PlayerControl::CSync::InitDefaults().
int32_t C4PlayerControlDefs::GetControlIndexByIdentifier | ( | const char * | szIdentifier | ) | const |
Definition at line 157 of file C4PlayerControl.cpp.
References CON_None, and SEqual().
Referenced by MergeFrom(), C4PlayerControlAssignment::ResolveRefs(), and UpdateInternalCons().
|
inline |
Definition at line 124 of file C4PlayerControl.h.
void C4PlayerControlDefs::MergeFrom | ( | const C4PlayerControlDefs & | Src | ) |
Definition at line 128 of file C4PlayerControl.cpp.
References CON_None, GetControlIndexByIdentifier(), and UpdateInternalCons().
Referenced by C4Game::LoadAdditionalSystemGroup().
|
inline |
Definition at line 126 of file C4PlayerControl.h.
void C4PlayerControlDefs::UpdateInternalCons | ( | ) |
Definition at line 105 of file C4PlayerControl.cpp.
References C4PlayerControlDefs::CInternalCons::CON_CursorPos, C4PlayerControlDefs::CInternalCons::CON_ObjectMenuCancel, C4PlayerControlDefs::CInternalCons::CON_ObjectMenuOK, C4PlayerControlDefs::CInternalCons::CON_ObjectMenuOKAll, C4PlayerControlDefs::CInternalCons::CON_ObjectMenuSelect, GetControlIndexByIdentifier(), and InternalCons.
Referenced by Clear(), CompileFunc(), and MergeFrom().
struct C4PlayerControlDefs::CInternalCons C4PlayerControlDefs::InternalCons |