Fission FSN
Loading...
Searching...
No Matches
gfILevelLoaderComponent.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: gfILevelLoaderComponent.h
4*
5* Purpose: Interface component to load levels
6*
7*********************************************************************/
8
9#ifndef gfILevelLoaderComponenthdr
10#define gfILevelLoaderComponenthdr
11
14
15
17{
18public:
19
20 static fsStr layersSubFolderGet(const fsStr& pLevelFolder);
21
23
24protected:
25
26 fsStr levelSceneFilenameGet(const fsStr& pLevelFolder) const;
27
28 void collectablEntitiesInitialise(std::vector<fsCEntity*>& pNewEnts);
29 virtual void collectablEntitiesInitialiseDo(std::vector<fsCEntity*>& pNewEnts) {}
30
31 void subSceneCompInit(fsCEntity* pSubSceneEnt, fsS32 pIndex) const;
32 void entitiesAddToSubScenes(const std::vector<fsCEntity*>& pNewEnts) const;
33 void particleEntitiesInitialise(const fsStr& pFolder, const std::vector<fsCEntity*>& pNewEnts);
34 void visibleEntitiesInitialise(const fsStr& pSceneFolderPath, const std::vector<fsCEntity*>& pNewEnts);
35 void spriteComponentInitialise(const fsStr& pSceneFolderPath, fsCEntity* pEntity, fsISpriteComponent* pSprComp);
36 void texturePagesLoad(const fsStr& pSplitFolderPath);
37
39
41
42private:
43
44 virtual fsStr imageFileNameGet(fsCEntity* const pEntity, const fsStr& pSceneFolderPath);
45};
46
47
48#endif
Definition fsCEntity.h:39
fsIComponent(fsCEntity *pParent)
Definition fsIComponent.cpp:86
Definition fsISpriteComponent.h:23
Definition fsStr.h:23
gfILevelLoaderComponent(fsCEntity *pParent)
Definition gfILevelLoaderComponent.cpp:238
void spriteComponentInitialise(const fsStr &pSceneFolderPath, fsCEntity *pEntity, fsISpriteComponent *pSprComp)
Definition gfILevelLoaderComponent.cpp:144
static fsStr layersSubFolderGet(const fsStr &pLevelFolder)
Definition gfILevelLoaderComponent.cpp:179
fsStr levelSceneFilenameGet(const fsStr &pLevelFolder) const
Definition gfILevelLoaderComponent.cpp:28
void particleEntitiesInitialise(const fsStr &pFolder, const std::vector< fsCEntity * > &pNewEnts)
Definition gfILevelLoaderComponent.cpp:85
void visibleEntitiesInitialise(const fsStr &pSceneFolderPath, const std::vector< fsCEntity * > &pNewEnts)
Definition gfILevelLoaderComponent.cpp:117
fsStr mLayersSubFolder
Definition gfILevelLoaderComponent.h:40
void collectablEntitiesInitialise(std::vector< fsCEntity * > &pNewEnts)
Definition gfILevelLoaderComponent.cpp:41
virtual ~gfILevelLoaderComponent()
Definition gfILevelLoaderComponent.cpp:244
void subSceneCompInit(fsCEntity *pSubSceneEnt, fsS32 pIndex) const
Definition gfILevelLoaderComponent.cpp:75
virtual void collectablEntitiesInitialiseDo(std::vector< fsCEntity * > &pNewEnts)
Definition gfILevelLoaderComponent.h:29
void texturePagesLoad(const fsStr &pSplitFolderPath)
Definition gfILevelLoaderComponent.cpp:209
void entitiesAddToSubScenes(const std::vector< fsCEntity * > &pNewEnts) const
Definition gfILevelLoaderComponent.cpp:46
int fsS32
Definition fsBaseTypes.h:20