Fission FSN
Loading...
Searching...
No Matches
gfCDrawOrderStateComponent.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: gfCDrawOrderStateComponent.h
4*
5* Purpose: Link together to maintain draw order.
6*
7* Parent entities MUST HAVE UNIQUE NAMES
8*
9*********************************************************************/
10
11#ifndef gfCDrawOrderStateComponenthdr
12#define gfCDrawOrderStateComponenthdr
13
14#include <fsCore/fsStr.h>
16
18
19class fsCEntity;
20
22{
23 friend class fsCComponentFactory;
24
25public:
26
27 static const fsCUniqueId mTypeId;
28
29 fsStr const& serialisedSceneParentNameGet() const { return mSerialisedSceneParentName; }
31
32 fsBool notLinked() const;
33 void clear();
34
35 fsS32 sizeGet();
36
40
42
43protected:
44
45 static fsIComponent* create(fsCEntity* pParent);
47
48 void deserialiseDo() override;
49 void serialiseDo() override;
50
51
52private:
53
54 void linkPrev(const fsStr& pLoadStr);
55 void linkNext(const fsStr& pLoadStr);
56 fsStr prevNameGet() const;
57 fsStr nextNameGet() const;
58
59 fsCEntity* const namedSiblingGet(const fsStr& pName);
60
61 gfCDrawOrderStateComponent* mNextInDrawOrder;
62 gfCDrawOrderStateComponent* mPrevInDrawOrder;
63 fsStr mSerialisedSceneParentName;
64};
65
66#endif
Definition fsCEntity.h:39
Definition fsCUniqueId.h:21
Definition fsIComponent.h:26
fsIComponent(fsCEntity *pParent)
Definition fsIComponent.cpp:86
Definition fsStr.h:23
Definition gfCDrawOrderStateComponent.h:22
void serialiseDo() override
Definition gfCDrawOrderStateComponent.cpp:9
friend class fsCComponentFactory
Definition gfCDrawOrderStateComponent.h:23
void clear()
Definition gfCDrawOrderStateComponent.cpp:32
gfCDrawOrderStateComponent(fsCEntity *pParent)
Definition gfCDrawOrderStateComponent.cpp:127
fsS32 sizeGet()
Definition gfCDrawOrderStateComponent.cpp:110
void addToTail(gfCDrawOrderStateComponent *pNew)
Definition gfCDrawOrderStateComponent.cpp:82
gfCDrawOrderStateComponent *const tailGet()
Definition gfCDrawOrderStateComponent.cpp:90
fsBool notLinked() const
Definition gfCDrawOrderStateComponent.cpp:38
gfCDrawOrderStateComponent *const rootGet()
Definition gfCDrawOrderStateComponent.cpp:100
void deserialiseDo() override
Definition gfCDrawOrderStateComponent.cpp:18
~gfCDrawOrderStateComponent()
Definition gfCDrawOrderStateComponent.cpp:134
fsStr const & serialisedSceneParentNameGet() const
Definition gfCDrawOrderStateComponent.h:29
gfCDrawOrderStateComponent *const next()
Definition gfCDrawOrderStateComponent.cpp:27
static fsIComponent * create(fsCEntity *pParent)
Definition gfCDrawOrderStateComponent.cpp:122
static const fsCUniqueId mTypeId
Definition gfCDrawOrderStateComponent.h:27
bool fsBool
Definition fsBaseTypes.h:26
int fsS32
Definition fsBaseTypes.h:20