C4ScenarioParameterDef::Option Struct Reference

#include <C4ScenarioParameters.h>

Collaboration diagram for C4ScenarioParameterDef::Option:

Public Member Functions

void CompileFunc (StdCompiler *pComp)

Public Attributes

int32_t Value
StdCopyStrBuf Name
StdCopyStrBuf Description

Detailed Description

Definition at line 34 of file C4ScenarioParameters.h.

Member Function Documentation

◆ CompileFunc()

void C4ScenarioParameterDef::Option::CompileFunc ( StdCompiler pComp)

Definition at line 23 of file C4ScenarioParameters.cpp.

References Description, StdCompiler::excNotFound(), mkNamingAdapt(), mkParAdapt(), Name, StdCompiler::Name(), StdCompiler::NameEnd(), StdCompiler::RCT_All, Value, and StdCompiler::Value().

Referenced by C4ScenarioParameterDefs::Clear(), and C4ScenarioParameterDef::GetAchievement().

24 {
25  if (!pComp->Name("Option")) { pComp->NameEnd(); pComp->excNotFound("Option"); }
28  pComp->Value(mkNamingAdapt( Value, "Value", 0));
29  pComp->NameEnd();
30 }
virtual bool Name(const char *szName)
Definition: StdCompiler.h:77
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:92
void excNotFound(const char *szMessage,...)
Definition: StdCompiler.h:233
void Value(const T &rStruct)
Definition: StdCompiler.h:161
StdParameterAdapt< T, P > mkParAdapt(T &&rObj, P &&rPar)
Definition: StdAdaptors.h:476
virtual void NameEnd(bool fBreak=false)
Definition: StdCompiler.h:78
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ Description

StdCopyStrBuf C4ScenarioParameterDef::Option::Description

◆ Name

StdCopyStrBuf C4ScenarioParameterDef::Option::Name

Definition at line 37 of file C4ScenarioParameters.h.

Referenced by CompileFunc(), and C4ScenarioParameterDef::CompileFunc().

◆ Value

int32_t C4ScenarioParameterDef::Option::Value

Definition at line 36 of file C4ScenarioParameters.h.

Referenced by CompileFunc(), and C4ScenarioParameterDef::GetOptionByValue().

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