#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()
{
}