Example #1
0
 public World(WorldSession _s)
 {
     _session = _s;
     _mapId = 0;
     _mapmgr = null;
     _movemgr = null;
     _mapmgr = new MapMgr();
 }
Example #2
0
        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;
            }
        }
Example #3
0
 public CombatMgr(ObjMgr _objectMgr, MovementMgr _movementMgr,WorldSession _session)
 {
     objectMgr = _objectMgr;
     movementMgr = _movementMgr;
     client = _session;
 }
Example #4
0
        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!");
        }
Example #5
0
 public PacketHandler(WorldSession client)
 {
     Handles = new List<PacketHandle>();
     wClient = client;
 }