aboutsummaryrefslogtreecommitdiff
path: root/source/EditorAttachmentImpl.cpp
diff options
context:
space:
mode:
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);
}