Browse Source

Expose C++ love.event Message name and args fields so other code can access them.

Alex Szpakowski 6 years ago
parent
commit
fc17ecba0d
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/modules/event/Event.h

+ 2 - 4
src/modules/event/Event.h

@@ -49,10 +49,8 @@ public:
 	int toLua(lua_State *L);
 	static Message *fromLua(lua_State *L, int n);
 
-private:
-
-	std::string name;
-	std::vector<Variant> args;
+	const std::string name;
+	const std::vector<Variant> args;
 
 }; // Message