OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4ParticleDefCore Class Reference

#include <C4Particles.h>

Inheritance diagram for C4ParticleDefCore:
[legend]
Collaboration diagram for C4ParticleDefCore:
[legend]

Public Member Functions

 C4ParticleDefCore ()
 
void CompileFunc (StdCompiler *compiler)
 
bool Compile (char *particle_source, const char *name)
 

Public Attributes

StdStrBuf Name
 
C4Rect GfxFace
 

Detailed Description

Definition at line 70 of file C4Particles.h.

Constructor & Destructor Documentation

C4ParticleDefCore::C4ParticleDefCore ( )

Definition at line 47 of file C4Particles.cpp.

References C4Rect::Default(), and GfxFace.

48 {
49  GfxFace.Default();
50 }
void Default()
Definition: C4Rect.cpp:26

Here is the call graph for this function:

Member Function Documentation

bool C4ParticleDefCore::Compile ( char *  particle_source,
const char *  name 
)

Definition at line 52 of file C4Particles.cpp.

References mkNamingAdapt().

Referenced by C4ParticleDef::Load().

53 {
54  return CompileFromBuf_LogWarn<StdCompilerINIRead>(mkNamingAdapt(*this, "Particle"),
55  StdStrBuf(particle_source), name);
56 }
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:93

Here is the call graph for this function:

Here is the caller graph for this function:

void C4ParticleDefCore::CompileFunc ( StdCompiler compiler)

Definition at line 41 of file C4Particles.cpp.

References GfxFace, mkNamingAdapt(), Name, toC4CStrBuf, and StdCompiler::Value().

42 {
43  pComp->Value(mkNamingAdapt(toC4CStrBuf(Name), "Name", ""));
44  pComp->Value(mkNamingAdapt(GfxFace, "Face"));
45 }
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:93
StdStrBuf Name
Definition: C4Particles.h:73
#define toC4CStrBuf(rBuf)
Definition: StdAdaptors.h:26

Here is the call graph for this function:

Member Data Documentation

C4Rect C4ParticleDefCore::GfxFace

Definition at line 74 of file C4Particles.h.

Referenced by C4ParticleDefCore(), CompileFunc(), and C4ParticleDef::Load().


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