From 906557f094e407ce21d429ef647bc75fe3179cf1 Mon Sep 17 00:00:00 2001 From: hnOsmium0001 Date: Sat, 9 Apr 2022 13:29:41 -0700 Subject: More work on editor --- source/EditorAttachmentImpl.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 source/EditorAttachmentImpl.cpp (limited to 'source/EditorAttachmentImpl.cpp') diff --git a/source/EditorAttachmentImpl.cpp b/source/EditorAttachmentImpl.cpp new file mode 100644 index 0000000..79c72ff --- /dev/null +++ b/source/EditorAttachmentImpl.cpp @@ -0,0 +1,19 @@ +#include "EditorAttachmentImpl.hpp" + +std::unique_ptr EaGameObject::Create(GameObject* object) { + EditorAttachment* result; + + using namespace Tags; + switch (object->GetTypeTag()) { + case GOT_Player: result = new EaPlayer(); break; + case GOT_LevelWrapper: result = new EaLevelWrapper(); break; + + default: result = new EditorAttachment(); break; + } + + result->name = NameOf(object->GetTypeTag()); + return std::unique_ptr(result); +} + +void EaShader::ShowInspector() { +} -- cgit v1.2.3-70-g09d2