Scene.h
Scene.h
CPP1/* Copyright Statement:2 *3 * (C) 2021-2025 Cubios Inc. All rights reserved.4 */56#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"1213namespace Cubios14{15class Scene16{17public:18 Scene();19 virtual ~Scene();2021 uint32_t CreateObject(SceneObject* obj);22 bool CreateObjectWithID(uint32_t id, SceneObject* obj);2324 uint32_t CreateSound(Sound* obj);25 bool CreateSoundWithID(uint32_t id, Sound* obj);2627 bool DisposeObjectWithID(uint32_t id);28 bool DisposeSoundWithID(uint32_t id);2930 void DisposeAllObjects();3132 SceneObject* operator[](uint32_t);3334 void Play(uint32_t id, uint8_t volume);3536private:37 std::map<uint32_t, SceneObject*> root;38 std::map<uint32_t, Sound*> sounds;39};4041}42#endif /* WASMLIBS_CPP_SCENE_H_ */43
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.