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:
@@ -32,7 +32,7 @@
|
||||
|
||||
class CharacterData: public Entity {
|
||||
public:
|
||||
CharacterData() = default;
|
||||
CharacterData();
|
||||
~CharacterData() = default;
|
||||
|
||||
//database stuff
|
||||
@@ -43,7 +43,7 @@ public:
|
||||
private:
|
||||
friend class CharacterManager;
|
||||
|
||||
int owner;
|
||||
int owner = -1;
|
||||
std::string handle;
|
||||
std::string avatar;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user