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 45 of file C4Particles.cpp.

References C4Rect::Default(), and GfxFace.

46 {
47  GfxFace.Default();
48 }
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 50 of file C4Particles.cpp.

References mkNamingAdapt().

Referenced by C4ParticleDef::Load().

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

Here is the call graph for this function:

Here is the caller graph for this function:

void C4ParticleDefCore::CompileFunc ( StdCompiler compiler)

Definition at line 39 of file C4Particles.cpp.

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

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

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: