From 2c92e07f337e42cf58970443f9de678f85a9b2a4 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Thu, 19 Oct 2023 22:50:07 -0700 Subject: The great renaming: switch to "module style" --- source/30-game/EditorAttachmentImpl.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 source/30-game/EditorAttachmentImpl.cpp (limited to 'source/30-game/EditorAttachmentImpl.cpp') diff --git a/source/30-game/EditorAttachmentImpl.cpp b/source/30-game/EditorAttachmentImpl.cpp deleted file mode 100644 index b09c133..0000000 --- a/source/30-game/EditorAttachmentImpl.cpp +++ /dev/null @@ -1,23 +0,0 @@ -#include "EditorAttachmentImpl.hpp" -#include "EditorAttachment.hpp" - -#include - -EditorAttachment::EditorAttachment() { -} - -std::unique_ptr EaGameObject::Create(GameObject* object) { - EaGameObject* result; - - auto kind = object->GetKind(); - switch (kind) { - case GameObject::KD_Player: result = new EaPlayer(); break; - case GameObject::KD_LevelWrapper: result = new EaLevelWrapper(); break; - - default: result = new EaGameObject(); break; - } - - result->name = Metadata::EnumToString(kind); - result->eulerAnglesRotation = glm::eulerAngles(object->GetRotation()); - return std::unique_ptr(result); -} -- cgit v1.2.3-70-g09d2