Added trigger reference to WaypointData, unused

WaypointData also inherits from Entity now, so I could alias Entity's API
for it too. I've also made a number of comment tweaks.
This commit is contained in:
Kayne Ruse
2014-12-31 03:34:06 +11:00
parent 78c04718e0
commit f9c19a630d
12 changed files with 42 additions and 10 deletions
+14 -1
View File
@@ -22,15 +22,28 @@
#ifndef WAYPOINTDATA_HPP_
#define WAYPOINTDATA_HPP_
#include "entity.hpp"
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp"
#endif
#include <string>
class WaypointData {
class WaypointData: public Entity {
public:
WaypointData() = default;
~WaypointData() = default;
int SetTriggerReference(int i);
int GetTriggerReference();
private:
friend class WaypointManager;
int triggerRef = LUA_NOREF;
};
#endif