OpenClonk
C4SAnimals Class Reference

#include <C4Scenario.h>

Collaboration diagram for C4SAnimals:
[legend]

Public Member Functions

void Default ()
 
void CompileFunc (StdCompiler *pComp)
 

Public Attributes

C4IDList FreeLife
 
C4IDList EarthNest
 

Detailed Description

Definition at line 208 of file C4Scenario.h.

Member Function Documentation

◆ CompileFunc()

void C4SAnimals::CompileFunc ( StdCompiler pComp)

Definition at line 387 of file C4Scenario.cpp.

388 {
389  pComp->Value(mkNamingAdapt(FreeLife, "Animal", C4IDList()));
390  pComp->Value(mkNamingAdapt(EarthNest, "Nest", C4IDList()));
391 }
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:92
C4IDList EarthNest
Definition: C4Scenario.h:212
C4IDList FreeLife
Definition: C4Scenario.h:211
void Value(const T &rStruct)
Definition: StdCompiler.h:161

References EarthNest, FreeLife, mkNamingAdapt(), and StdCompiler::Value().

Here is the call graph for this function:

◆ Default()

void C4SAnimals::Default ( )

Definition at line 381 of file C4Scenario.cpp.

382 {
383  FreeLife.Clear();
384  EarthNest.Clear();
385 }
void Clear()
Definition: stub-handle.cpp:64

References C4IDList::Clear(), EarthNest, and FreeLife.

Referenced by C4Scenario::Default().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ EarthNest

C4IDList C4SAnimals::EarthNest

Definition at line 212 of file C4Scenario.h.

Referenced by CompileFunc(), Default(), and C4Game::InitAnimals().

◆ FreeLife

C4IDList C4SAnimals::FreeLife

Definition at line 211 of file C4Scenario.h.

Referenced by CompileFunc(), Default(), and C4Game::InitAnimals().


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