From a849c199d970e153580c312a24cfdfa099bc7b69 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sat, 9 Apr 2022 13:29:41 -0700 Subject: Changeset: 4 More work on editor --- source/EditorInspector.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 source/EditorInspector.cpp (limited to 'source/EditorInspector.cpp') diff --git a/source/EditorInspector.cpp b/source/EditorInspector.cpp new file mode 100644 index 0000000..2f1d65c --- /dev/null +++ b/source/EditorInspector.cpp @@ -0,0 +1,15 @@ +#include "EditorInspector.hpp" + +void EditorInspector::Show() { + if (mCurrentTarget) { + mCurrentTarget->ShowInspector(); + } +} + +IEditorInspectorTarget* EditorInspector::GetCurrentTarget() const { + return mCurrentTarget; +} + +void EditorInspector::SetCurrentTarget(IEditorInspectorTarget* target) { + mCurrentTarget = target; +} -- cgit v1.2.3-70-g09d2