More static actors loaded and can be accessed anywhere. Improved lua scripting to allow small talk.

This commit is contained in:
Filip Maj 2016-01-25 01:10:43 -05:00
parent 300748668f
commit 789df97d48
16 changed files with 882 additions and 28 deletions

View file

@ -33,7 +33,7 @@ namespace FFXIVClassic_Lobby_Server
private List<ClientConnection> mConnectionList = new List<ClientConnection>();
private LuaEngine mLuaEngine = new LuaEngine();
private WorldManager mWorldManager;
private StaticActors mStaticActors = new StaticActors();
private static StaticActors mStaticActors = new StaticActors();
private PacketProcessor mProcessor;
private Thread mProcessorThread;
private Thread mGameThread;
@ -143,6 +143,14 @@ namespace FFXIVClassic_Lobby_Server
}
}
public static Actor getStaticActors(string name)
{
if (mStaticActors == null)
mStaticActors = new StaticActors();
return mStaticActors.findStaticActor(name);
}
/// <summary>
/// Receive Callback. Reads in incoming data, converting them to base packets. Base packets are sent to be parsed. If not enough data at the end to build a basepacket, move to the beginning and prepend.
/// </summary>