mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
Rework application class and framework
Make otclient's framework flexible enough to run console apps like servers, so this mean is possible to build otclient versions without graphical interface and use it's framework to code servers
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
#include "connection.h"
|
||||
|
||||
#include <framework/application.h>
|
||||
#include <framework/core/application.h>
|
||||
#include <framework/core/eventdispatcher.h>
|
||||
#include <boost/asio.hpp>
|
||||
|
||||
@@ -41,7 +41,7 @@ Connection::Connection() :
|
||||
|
||||
Connection::~Connection()
|
||||
{
|
||||
assert(!g_app.isTermianted());
|
||||
assert(!g_app.isTerminated());
|
||||
close();
|
||||
}
|
||||
|
||||
|
@@ -24,7 +24,7 @@
|
||||
#define INPUTMESSAGE_H
|
||||
|
||||
#include "declarations.h"
|
||||
#include <framework/luascript/luaobject.h>
|
||||
#include <framework/luaengine/luaobject.h>
|
||||
|
||||
// @bindclass
|
||||
class InputMessage : public LuaObject
|
||||
|
@@ -24,7 +24,7 @@
|
||||
#define OUTPUTMESSAGE_H
|
||||
|
||||
#include "declarations.h"
|
||||
#include <framework/luascript/luaobject.h>
|
||||
#include <framework/luaengine/luaobject.h>
|
||||
|
||||
// @bindclass
|
||||
class OutputMessage : public LuaObject
|
||||
|
@@ -22,7 +22,7 @@
|
||||
|
||||
#include "protocol.h"
|
||||
#include "connection.h"
|
||||
#include <framework/application.h>
|
||||
#include <framework/core/application.h>
|
||||
|
||||
Protocol::Protocol()
|
||||
{
|
||||
@@ -33,7 +33,7 @@ Protocol::Protocol()
|
||||
|
||||
Protocol::~Protocol()
|
||||
{
|
||||
assert(!g_app.isTermianted());
|
||||
assert(!g_app.isTerminated());
|
||||
disconnect();
|
||||
}
|
||||
|
||||
|
@@ -27,7 +27,7 @@
|
||||
#include "inputmessage.h"
|
||||
#include "outputmessage.h"
|
||||
|
||||
#include <framework/luascript/luaobject.h>
|
||||
#include <framework/luaengine/luaobject.h>
|
||||
|
||||
// @bindclass
|
||||
class Protocol : public LuaObject
|
||||
|
Reference in New Issue
Block a user