Implemented entity.GetType() in lua

This will only work for userdata decented from the Entity base class.
Using something else results in undefined behavior.
This commit is contained in:
Kayne Ruse
2015-03-09 09:04:12 +11:00
parent 501b1e9814
commit decc77e21c
8 changed files with 46 additions and 12 deletions
+4
View File
@@ -21,6 +21,10 @@
*/
#include "monster_data.hpp"
MonsterData::MonsterData(): Entity("monster") {
//EMPTY
}
std::string MonsterData::SetAvatar(std::string s) {
return avatar = s;
}