diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-05-17 15:55:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-17 15:55:37 -0400 |
commit | 90aadf3844386824140a20d7fbb847bc16009a94 (patch) | |
tree | 6f83fce90e71abb22b1a8f3e09c79963b2a34d5d /tools/mapedit/src/object.h | |
parent | bc63fa57ced1c7329f7fdcfd168eaf7e290158bc (diff) | |
parent | 86f0106d0523825549f1e74b835688c78a10cf6c (diff) | |
download | therapy-90aadf3844386824140a20d7fbb847bc16009a94.tar.gz therapy-90aadf3844386824140a20d7fbb847bc16009a94.tar.bz2 therapy-90aadf3844386824140a20d7fbb847bc16009a94.zip |
Merge pull request #7 from hatkirby/es-rewrite
The ECS rewrite exceeds the original branch in functionality, so it is time to merge it in.
Diffstat (limited to 'tools/mapedit/src/object.h')
-rw-r--r-- | tools/mapedit/src/object.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/mapedit/src/object.h b/tools/mapedit/src/object.h index a870a2e..a87fa96 100644 --- a/tools/mapedit/src/object.h +++ b/tools/mapedit/src/object.h | |||
@@ -67,7 +67,11 @@ class MapObject { | |||
67 | 67 | ||
68 | class MapObjectEntry { | 68 | class MapObjectEntry { |
69 | public: | 69 | public: |
70 | MapObjectEntry(const MapObject& object, int posx, int posy); | 70 | MapObjectEntry( |
71 | const MapObject& object, | ||
72 | int posx, | ||
73 | int posy, | ||
74 | size_t index); | ||
71 | 75 | ||
72 | struct Item { | 76 | struct Item { |
73 | MapObject::Input::Type type; | 77 | MapObject::Input::Type type; |
@@ -78,6 +82,7 @@ class MapObjectEntry { | |||
78 | std::pair<int, int> getPosition() const; | 82 | std::pair<int, int> getPosition() const; |
79 | Item& getItem(std::string str); | 83 | Item& getItem(std::string str); |
80 | const std::map<std::string, Item>& getItems() const; | 84 | const std::map<std::string, Item>& getItems() const; |
85 | size_t getIndex() const; | ||
81 | 86 | ||
82 | void setPosition(int x, int y); | 87 | void setPosition(int x, int y); |
83 | void addItem(std::string id, Item& item); | 88 | void addItem(std::string id, Item& item); |
@@ -89,6 +94,7 @@ class MapObjectEntry { | |||
89 | const MapObject& object; | 94 | const MapObject& object; |
90 | std::pair<int, int> position; | 95 | std::pair<int, int> position; |
91 | std::map<std::string, Item> items; | 96 | std::map<std::string, Item> items; |
97 | size_t index; | ||
92 | }; | 98 | }; |
93 | 99 | ||
94 | class VariableChoiceValidator : public wxValidator { | 100 | class VariableChoiceValidator : public wxValidator { |