WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelog
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.
Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. Source
  4. Scene.h
Mission NodeSDK 6.2C++scene.h

Scene.h

SDK Source File: Scene.h

Source / SDK 6.2 / C++ / Core

Scene.h

Scene.h
CPP
1/* Copyright Statement:
2 *
3 * (C) 2021-2024 Cubios Inc. All rights reserved.
4 */
5
6#ifndef WASMLIBS_CPP_SCENE_H_
7#define WASMLIBS_CPP_SCENE_H_
8#include <memory>
9#include <map>
10#include "SceneObject.h"
11#include "Sound.h"
12
13namespace Cubios
14{
15class Scene
16{
17public:
18 Scene();
19 virtual ~Scene();
20
21 uint32_t CreateObject(SceneObject* obj);
22 bool CreateObjectWithID(uint32_t id, SceneObject* obj);
23
24 uint32_t CreateSound(Sound* obj);
25 bool CreateSoundWithID(uint32_t id, Sound* obj);
26
27 bool DisposeObjectWithID(uint32_t id);
28 bool DisposeSoundWithID(uint32_t id);
29
30 void DisposeAllObjects();
31
32 SceneObject* operator[](uint32_t);
33
34 void Play(uint32_t id, uint8_t volume);
35
36private:
37 std::map<uint32_t, SceneObject*> root;
38 std::map<uint32_t, Sound*> sounds;
39};
40
41}
42#endif /* WASMLIBS_CPP_SCENE_H_ */
43
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.
Context Rail

Related nodes

AppManager.cpp
Source / SDK 6.2 / C++ / Core
AppManager.h
Source / SDK 6.2 / C++ / Core
Gfx.h
Source / SDK 6.2 / C++ / Core
native access.h
Source / SDK 6.2 / C++ / Core
Previous Node
Scene.cpp
Source / SDK 6.2 / C++ / Core
Next Node
SceneObject.h
Source / SDK 6.2 / C++ / Core