-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathObjectTags.cpp
More file actions
31 lines (29 loc) · 1.6 KB
/
Copy pathObjectTags.cpp
File metadata and controls
31 lines (29 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "ObjectTags.h"
#include "DevelopState.h"
using namespace std;
const string ObjectTags::START_OF_OBJECT = "[START OBJECT]";
const string ObjectTags::END_OF_OBJECT = "[END OBJECT]";
const string ObjectTags::COMPONENT = "[COMPONENT]";
// The data has always used "[-COMPONENT]", matching the "[-X]" convention of
// every other closing tag in the format. This constant said "[-END COMPONENT]",
// so no component name was ever extracted correctly: the old length-based
// parser returned a truncated "Standard Grap", and the factory matched none of
// its cases. Every GameObject in the level was therefore built with no
// graphics, no transform and no update component at all.
const string ObjectTags::COMPONENT_END = "[-COMPONENT]";
const string ObjectTags::NAME = "[NAME]";
const string ObjectTags::NAME_END = "[-NAME]";
const string ObjectTags::WIDTH = "[WIDTH]";
const string ObjectTags::WIDTH_END = "[-WIDTH]";
const string ObjectTags::HEIGHT = "[HEIGHT]";
const string ObjectTags::HEIGHT_END = "[-HEIGHT]";
const string ObjectTags::LOCATION_X = "[LOCATION X]";
const string ObjectTags::LOCATION_X_END = "[-LOCATION X]";
const string ObjectTags::LOCATION_Y = "[LOCATION Y]";
const string ObjectTags::LOCATION_Y_END = "[-LOCATION Y]";
const string ObjectTags::BITMAP_NAME = "[BITMAP NAME]";
const string ObjectTags::BITMAP_NAME_END = "[-BITMAP NAME]";
const string ObjectTags::SPEED = "[SPEED]";
const string ObjectTags::SPEED_END = "[-SPEED]";
const string ObjectTags::ENCOMPASSING_RECT_COLLIDER = "[ENCOMPASSING RECT COLLIDER]";
const string ObjectTags::ENCOMPASSING_RECT_COLLIDER_END = "[-ENCOMPASSING RECT COLLIDER]";