Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
DesignerSceneRemovalEvent.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <Common/assertion.h>
6
7namespace ph::editor
8{
9
10class DesignerScene;
11
14class DesignerSceneRemovalEvent final : public TEditorEvent<false>
15{
16public:
18
22 DesignerScene& getScene() const;
23
24private:
25 DesignerScene* m_scene;
26};
27
29 DesignerScene* const scene, Editor* const editor)
30
31 : TEditorEvent(editor)
32
33 , m_scene(scene)
34{}
35
37{
38 PH_ASSERT(m_scene);
39 return *m_scene;
40}
41
42}// end namespace ph::editor
Definition DesignerScene.h:58
Event for a scene that is going to be removed.
Definition DesignerSceneRemovalEvent.h:15
DesignerScene & getScene() const
Definition DesignerSceneRemovalEvent.h:36
DesignerSceneRemovalEvent(DesignerScene *scene, Editor *editor)
Definition DesignerSceneRemovalEvent.h:28
Definition Editor.h:45
Definition TEditorEvent.h:15
Definition ph_editor.h:10