/TGame/TCommon/Scene/SceneManagerIf.h

http://awoe.googlecode.com/ · C Header · 37 lines · 13 code · 10 blank · 14 comment · 0 complexity · e6571d74844282d3a7b451a1713a389f MD5 · raw file

  1. #ifndef __SCENE_MANAGER_INTERFACE___
  2. #define __SCENE_MANAGER_INTERFACE___
  3. #include "Gene/GeneHostImp.h"
  4. #include "SceneIf.h"
  5. //
  6. // scene manager interface
  7. //
  8. class TCOM_API ISceneManager
  9. {
  10. public:
  11. virtual ~ISceneManager(){}
  12. //
  13. // each scene will have a global unique instance id
  14. // retrieve scene by instance id
  15. //
  16. virtual IScene* getScene(int nInstanceID) = 0;
  17. //
  18. // add a scene by static id and table
  19. // scene will be fully initialized in it loading method
  20. //
  21. virtual IScene* addScene(int nStaticID, short type) = 0;
  22. //
  23. // remove a scene by its instance id
  24. //
  25. virtual bool rmvScene(int nInstanceID) = 0;
  26. };
  27. #endif