Class Scene

Class Documentation

class Scene

Public Types

enum ImportStyle

Values:

Local

If scene is not imported but created raw inside this scene.

External

If scene is linked to another scene file.

Public Functions

Scene(SceneID id, const String &name, const SceneSettings &settings, ImportStyle importStyle, const String &sceneFile)
~Scene()
Scene *findScene(SceneID scene)
void reimport()
void onLoad()
bool snatchChild(Scene *child)
bool addChild(Ptr<Scene> &child)
bool removeChild(Scene *toRemove)
void setName(const String &name)
JSON::json getJSON() const
bool &getIsScenePaused()
void setIsScenePaused(bool pause)
Vector<Ptr<Scene>> &getChildren()
SceneID getID() const
ImportStyle getImportStyle() const
String getScenePath() const
Scene *getParent() const
Entity &getEntity()
const String &getName() const
const String &getFullName() const
SceneSettings &getSettings()

Public Static Functions

static void ResetNextID()
static Ptr<Scene> Create(const JSON::json &sceneData, const bool assignNewIDs)
static Ptr<Scene> CreateFromFile(const String &sceneFile)
static Ptr<Scene> CreateEmpty()
static Ptr<Scene> CreateEmptyAtPath(const String &sceneFile)
static Ptr<Scene> CreateRootScene()
static Vector<Scene *> FindScenesByName(const String &name)
static Scene *FindSceneByID(const SceneID &id)
static const Vector<Scene *> &FindAllScenes()