UDPNetworkUtility is a singleton, disabled InCombat scene
I found incombat to be way too finicky to keep up to date, so I disabled it for now.
This commit is contained in:
+7
-2
@@ -23,6 +23,7 @@
|
||||
|
||||
//singletons
|
||||
#include "config_utility.hpp"
|
||||
#include "udp_network_utility.hpp"
|
||||
|
||||
#include <stdexcept>
|
||||
#include <iostream>
|
||||
@@ -33,17 +34,21 @@ int main(int argc, char** argv) {
|
||||
try {
|
||||
//create the singletons
|
||||
ConfigUtility::Create();
|
||||
ServerApplication::Create();
|
||||
UDPNetworkUtility::Create();
|
||||
|
||||
//call the server's routines
|
||||
ServerApplication::Create();
|
||||
ServerApplication& app = ServerApplication::GetSingleton();
|
||||
|
||||
app.Init(argc, argv);
|
||||
app.Proc();
|
||||
app.Quit();
|
||||
|
||||
ServerApplication::Delete();
|
||||
|
||||
//delete the singletons
|
||||
ConfigUtility::Delete();
|
||||
ServerApplication::Delete();
|
||||
UDPNetworkUtility::Delete();
|
||||
}
|
||||
catch(exception& e) {
|
||||
cerr << "Fatal exception thrown: " << e.what() << endl;
|
||||
|
||||
@@ -85,7 +85,7 @@ private:
|
||||
//APIs and utilities
|
||||
sqlite3* database = nullptr;
|
||||
lua_State* luaState = nullptr;
|
||||
UDPNetworkUtility network;
|
||||
UDPNetworkUtility& network = UDPNetworkUtility::GetSingleton();
|
||||
ConfigUtility& config = ConfigUtility::GetSingleton();
|
||||
|
||||
//simple tables
|
||||
|
||||
Reference in New Issue
Block a user