public World(WorldSession _s) { _session = _s; _mapId = 0; _mapmgr = null; _movemgr = null; _mapmgr = new MapMgr(); }
public void Disconnect() { if (!inited) throw new Exception("Run BoogieCore.Init() first."); if (logonSession != null) { // Stop the WS thread and wait till it ends. logonSession.HardDisconnect(); // causes deadlocks atm. logonSession = null; } if (worldSession != null) { // Stop the WS thread and wait till it ends. worldSession.StopThread(false); // causes deadlocks atm. worldSession = null; } }
public CombatMgr(ObjMgr _objectMgr, MovementMgr _movementMgr,WorldSession _session) { objectMgr = _objectMgr; movementMgr = _movementMgr; client = _session; }
public void ConnectToWorldServer() { if (!inited) throw new Exception("Run BoogieCore.Init() first."); if (worldSession != null) throw new Exception("Already connected?"); if (logonSession.mUsername.Length > 2 && logonSession.mKey.Length >= 16) { worldSession = new WorldSession(GetLSession().Realmlist[0], logonSession.mUsername, logonSession.mKey, this); //worldSession.Connect(); } else Log.WriteLine(netLogic.Shared.LogType.Error, "Unable to login to Game server! Unknown error occured. Check above!"); }
public PacketHandler(WorldSession client) { Handles = new List<PacketHandle>(); wClient = client; }