1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#include "fsIComponent.h"

#include <fsCore/src/debug/fsAssert.h>
#include "../../src/fsCEntity.h"

fsCEntity* fsIComponent::appSceneEntityNamed(const fsStr& pName) const<--- The member function 'fsIComponent::appSceneEntityNamed' can be static.
{
	return fsCAppCoreMain::instanceGet()->sceneGet()->entityNamed(pName);
}

void fsIComponent::finalise()
{
	finaliseDo();
}

void fsIComponent::reset()
{
	resetDo();
}

void fsIComponent::update(fsS32 pDeltaMs)
{
	updateDo(pDeltaMs);
}

void fsIComponent::matrixApply()
{
	matrixApplyDo();
}

void fsIComponent::render()
{
	renderDo();
}

void fsIComponent::postLoad()
{
	postLoadDo();
}

void fsIComponent::serialise()
{
	serialiseDo();
}

void fsIComponent::deserialise()
{
	deserialiseDo();
}

void fsIComponent::initialise()
{
	initialiseDo();
}

void fsIComponent::initialiseFromVariableTable(const fsCVariableTable& pVars)
{
#if !defined fsRELEASE
	mHierarchyCheckSuccess = false;
#endif

	initialiseFromVariableTableDo(pVars);

#if !defined fsRELEASE
	fsAssert( mHierarchyCheckSuccess == true, "A component has not called super::initialiseFromVariableTableDo()\n" );
#endif
}

void fsIComponent::initialiseFromVariableTableDo(const fsCVariableTable& pVars)
{
#if !defined fsRELEASE
	mHierarchyCheckSuccess = true;
#endif
}

fsCEntity* fsIComponent::parentGet() const
{
	return mParent;
}

fsCEntity* fsIComponent::grandparentGet() const
{
	return static_cast<fsCEntity*>(mParent->parentGet());
}

fsIComponent::fsIComponent(fsCEntity* pParent) :
	mParent(pParent)
#if !defined fsRELEASE
,mHierarchyCheckSuccess( false )
#endif
{
}

fsIComponent::~fsIComponent()
{
}