A few calls added, forget where I was but just pushing so KLS can start looking at the quest stuff

This commit is contained in:
Akkadius
2014-10-03 18:45:32 -05:00
parent ca86763c2b
commit 509babc2d1
14 changed files with 242 additions and 60 deletions
+3 -1
View File
@@ -6,7 +6,7 @@ extern WorldServer *worldserver;
extern std::map<std::string, std::pair<int, MethodHandler>> authorized_methods;
extern std::map<std::string, MethodHandler> unauthorized_methods;
/* Web Interface */
/* Web Interface:register_authorized_methods */
void register_authorized_methods()
{
authorized_methods["WebInterface.Authorize"] = std::make_pair(0, handle_method_token_auth);
@@ -16,6 +16,8 @@ void register_authorized_methods()
authorized_methods["Zone.Unsubscribe"] = std::make_pair(10, handle_method_zone);
authorized_methods["Zone.GetInitialEntityPositions"] = std::make_pair(10, handle_method_zone);
authorized_methods["Zone.MoveEntity"] = std::make_pair(10, handle_method_zone);
authorized_methods["Zone.Action"] = std::make_pair(10, handle_method_zone);
authorized_methods["Quest.GetScript"] = std::make_pair(10, handle_method_world);
}
void register_unauthorized_methods()
+1 -3
View File
@@ -206,6 +206,4 @@ int main() {
libwebsocket_context_destroy(context);
return 0;
}
}