blob: 79c72ff60c4142cee7ad77eb7072cf9ab6db59d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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() {
}
|