aboutsummaryrefslogtreecommitdiff
path: root/source/EditorAttachmentImpl.cpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-04-09 13:29:41 -0700
committerrtk0c <[email protected]>2022-04-09 13:29:41 -0700
commita849c199d970e153580c312a24cfdfa099bc7b69 (patch)
tree1b5faa8d40953ee451103b94349bb84c738677ee /source/EditorAttachmentImpl.cpp
parente7ef3f208c109357538b1f68af10bcd78db95c95 (diff)
Changeset: 4 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() {
+}