OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4ControlPlayerControl::ControlItem Struct Reference

#include <C4Control.h>

Public Member Functions

 ControlItem ()=default
 
 ControlItem (int32_t iControl, int32_t iTriggerMode)
 
void CompileFunc (StdCompiler *pComp)
 
bool operator== (const struct ControlItem &cmp) const
 

Public Attributes

int32_t iControl {-1}
 
int32_t iTriggerMode {0}
 

Detailed Description

Definition at line 208 of file C4Control.h.

Constructor & Destructor Documentation

C4ControlPlayerControl::ControlItem::ControlItem ( )
default
C4ControlPlayerControl::ControlItem::ControlItem ( int32_t  iControl,
int32_t  iTriggerMode 
)
inline

Member Function Documentation

void C4ControlPlayerControl::ControlItem::CompileFunc ( StdCompiler pComp)

Definition at line 429 of file C4Control.cpp.

References iControl, iTriggerMode, StdCompiler::Separator(), and StdCompiler::Value().

430 {
431  pComp->Value(iControl);
432  pComp->Separator();
433  pComp->Value(iTriggerMode);
434 }
virtual bool Separator(Sep eSep=SEP_SEP)
Definition: StdCompiler.h:119
void Value(const T &rStruct)
Definition: StdCompiler.h:161

Here is the call graph for this function:

bool C4ControlPlayerControl::ControlItem::operator== ( const struct ControlItem cmp) const
inline

Definition at line 215 of file C4Control.h.

References iControl, and iTriggerMode.

215 { return iControl==cmp.iControl && iTriggerMode == cmp.iTriggerMode; }

Member Data Documentation

int32_t C4ControlPlayerControl::ControlItem::iControl {-1}

Definition at line 210 of file C4Control.h.

Referenced by CompileFunc(), C4PlayerControl::ExecuteControlPacket(), and operator==().

int32_t C4ControlPlayerControl::ControlItem::iTriggerMode {0}

Definition at line 211 of file C4Control.h.

Referenced by CompileFunc(), C4PlayerControl::ExecuteControlPacket(), and operator==().


The documentation for this struct was generated from the following files: