Monster API clones from Entity API, read more
This is my solution for handling inheritance via lua. The Entity class is only a base class, so the entity API is designed to be copied from, rather than used directly. linit.c: It should be noted that the Entity API must always be placed before the utilizing child APIs. I don't know about how lua handles things internally, but I'm assuming that this is the case. There's no real meat in the API code yet, since that's just busy-work. Right now I feel beter about writing the connective tissue. This case could aslo extend to the waypoint and monster APIs. The waypoint system had some API and class methods removed for brevity.
This commit is contained in:
@@ -32,9 +32,9 @@ public:
|
||||
~MonsterData() = default;
|
||||
|
||||
std::string SetAvatar(std::string);
|
||||
int SetScriptReference(int);
|
||||
|
||||
std::string GetAvatar();
|
||||
|
||||
int SetScriptReference(int);
|
||||
int GetScriptReference();
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user