OpenClonk
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::C4ParticleDefCore ( )

Definition at line 45 of file C4Particles.cpp.

46 {
47  GfxFace.Default();
48 }
void Default()
Definition: C4Rect.cpp:26

References C4Rect::Default(), and GfxFace.

Here is the call graph for this function:

Member Function Documentation

◆ Compile()

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

Definition at line 50 of file C4Particles.cpp.

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

References mkNamingAdapt().

Referenced by C4ParticleDef::Load().

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

◆ CompileFunc()

void C4ParticleDefCore::CompileFunc ( StdCompiler compiler)

Definition at line 39 of file C4Particles.cpp.

40 {
41  pComp->Value(mkNamingAdapt(toC4CStrBuf(Name), "Name", ""));
42  pComp->Value(mkNamingAdapt(GfxFace, "Face"));
43 }
#define toC4CStrBuf(rBuf)
Definition: StdAdaptors.h:25
StdStrBuf Name
Definition: C4Particles.h:73

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

Here is the call graph for this function:

Member Data Documentation

◆ GfxFace

C4Rect C4ParticleDefCore::GfxFace

Definition at line 74 of file C4Particles.h.

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

◆ Name


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