aboutsummaryrefslogtreecommitdiff
path: root/source/EditorAttachmentImpl.cpp
diff options
context:
space:
mode:
authorhnOsmium0001 <[email protected]>2022-04-09 13:29:41 -0700
committerhnOsmium0001 <[email protected]>2022-04-09 13:29:41 -0700
commit906557f094e407ce21d429ef647bc75fe3179cf1 (patch)
tree5e6aaed6537a0328318b6cd6561f6a76bf8aa27d /source/EditorAttachmentImpl.cpp
parente47a98793e58a5dbbe76bfed27e59408e43538e4 (diff)
More work on editor
Diffstat (limited to 'source/EditorAttachmentImpl.cpp')
-rw-r--r--source/EditorAttachmentImpl.cpp19
1 files changed, 19 insertions, 0 deletions
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<EditorAttachment> 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<EditorAttachment>(result);
+}
+
+void EaShader::ShowInspector() {
+}