Removed NLua and replaced it with MoonSharp. Scripting for NPCs has been implemented, but still have to test a lot.

This commit is contained in:
Filip Maj 2016-01-24 17:11:35 -05:00
parent 74be19c51d
commit 300748668f
27 changed files with 22603 additions and 136 deletions

View file

@ -25,17 +25,29 @@ namespace FFXIVClassic_Lobby_Server
public const int BUFFER_SIZE = 0x400;
public const int BACKLOG = 100;
private static Server mSelf;
private Socket mServerSocket;
private Dictionary<uint,ConnectedPlayer> mConnectedPlayerList = new Dictionary<uint,ConnectedPlayer>();
private List<ClientConnection> mConnectionList = new List<ClientConnection>();
private LuaEngine luaEngine = new LuaEngine();
private LuaEngine mLuaEngine = new LuaEngine();
private WorldManager mWorldManager;
private StaticActors mStaticActors = new StaticActors();
private PacketProcessor mProcessor;
private Thread mProcessorThread;
private Thread mGameThread;
public Server()
{
mSelf = this;
}
public static Server getServer()
{
return mSelf;
}
#region Socket Handling
public bool startServer()
{
@ -353,6 +365,11 @@ namespace FFXIVClassic_Lobby_Server
}
}
public LuaEngine GetLuaEngine()
{
return mLuaEngine;
}
public WorldManager GetWorldManager()
{
return mWorldManager;