Add collision events and fix a few bugs when objects are renamed/deleted
This commit is contained in:
1 parent
95d1936a5f
commit
42575e5d5a
14 files changed
+416
-97
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <vector>
|
||||
#include <list>
|
||||
#include <map>
|
||||
|
||||
#include <QString>
|
||||
#include <QPixmap>
|
||||
@@ -117,6 +118,7 @@ struct Object
|
||||
};
|
||||
|
||||
using events_container_t = std::map<EventType, ActionsContainer>;
|
||||
using collision_events_container_t = std::map<QString, ActionsContainer>;
|
||||
|
||||
QString name;
|
||||
QString spriteName;
|
||||
@@ -125,6 +127,7 @@ struct Object
|
||||
int depth{};
|
||||
bool persistent{};
|
||||
events_container_t events;
|
||||
collision_events_container_t collisionEvents;
|
||||
};
|
||||
|
||||
struct Room
|
||||
|
||||
Reference in new issue
Block a user