OpenClonk
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

◆ ControlItem() [1/2]

C4ControlPlayerControl::ControlItem::ControlItem ( )
default

◆ ControlItem() [2/2]

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

Member Function Documentation

◆ CompileFunc()

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

Definition at line 429 of file C4Control.cpp.

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

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

Here is the call graph for this function:

◆ operator==()

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

Definition at line 215 of file C4Control.h.

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

References iControl, and iTriggerMode.

Member Data Documentation

◆ iControl

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

Definition at line 210 of file C4Control.h.

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

◆ iTriggerMode

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: