diff options
author | hnOsmium0001 <[email protected]> | 2022-04-25 20:22:07 -0700 |
---|---|---|
committer | hnOsmium0001 <[email protected]> | 2022-04-25 20:22:07 -0700 |
commit | f54370de7e4214cb7813d26b1a39a8f6e42b7b56 (patch) | |
tree | 20913b4099b77af933fcd2ebb4e73f53b366ad8f /source/EditorAttachmentImpl.cpp | |
parent | c8ebee643f23c34ff57f69f8dfcf1903b59ea9d1 (diff) |
Initial work on rendering sprites to screen
Diffstat (limited to 'source/EditorAttachmentImpl.cpp')
-rw-r--r-- | source/EditorAttachmentImpl.cpp | 10 |
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); } |