aboutsummaryrefslogtreecommitdiff
path: root/source/EditorAttachmentImpl.cpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-04-25 20:22:07 -0700
committerrtk0c <[email protected]>2022-04-25 20:22:07 -0700
commit855da86feae1a5cc14dc2d486ccf115f484dbc2e (patch)
tree8284c6a6bdfb1a919eb1a22f466f4180a329c7f3 /source/EditorAttachmentImpl.cpp
parentd78a55de5003dbb040f1d1c369409e63a2c806d8 (diff)
Changeset: 16 Initial work on rendering sprites to screen
Diffstat (limited to 'source/EditorAttachmentImpl.cpp')
-rw-r--r--source/EditorAttachmentImpl.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/EditorAttachmentImpl.cpp b/source/EditorAttachmentImpl.cpp
index 75d93cb..5193f84 100644
--- a/source/EditorAttachmentImpl.cpp
+++ b/source/EditorAttachmentImpl.cpp
@@ -7,14 +7,14 @@ EditorAttachment::EditorAttachment() {
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;
+ 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 EditorAttachment(); break;
}
- result->name = NameOf(object->GetTypeTag());
+ result->name = GameObject::ToString(kind);
return std::unique_ptr<EditorAttachment>(result);
}