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:
Kayne Ruse
2015-01-11 19:08:31 +11:00
parent 8ea667a0b5
commit 051ed0f14c
10 changed files with 165 additions and 86 deletions
-16
View File
@@ -25,22 +25,10 @@ int MonsterManager::Create(std::string) {
//TODO
}
int MonsterManager::Load(std::string) {
//TODO
}
int MonsterManager::Save(int uid) {
//TODO
}
void MonsterManager::Unload(int uid) {
//TODO
}
void MonsterManager::Delete(int uid) {
//TODO
}
void MonsterManager::UnloadAll() {
//TODO
}
@@ -57,10 +45,6 @@ int MonsterManager::GetLoadedCount() {
//TODO
}
int MonsterManager::GetTotalCount() {
//TODO
}
std::map<int, MonsterData>* MonsterManager::GetContainer() {
//TODO
}