Esempio n. 1
0
        public RealmClient(SilverSocket socket)
            : base(socket)
        {
            _packetLocker = new object();

            this.DisconnectedSocket += new DisconnectedSocketHandler(this.Disconnected);
            this.ReceivedDatas += new ReceiveDatasHandler(this.ReceivedPackets);

            Characters = new List<SunDofus.World.Realm.Characters.Character>();
            Commander = new RealmCommand(this);
            _parser = new RealmParser(this);

            Player = null;
            isAuth = false;

            Send("HG");
        }
Esempio n. 2
0
        public RealmClient(SilverSocket socket)
            : base(socket)
        {
            locker = new object();

            this.DisconnectedSocket += new DisconnectedSocketHandler(this.Disconnected);
            this.ReceivedDatas += new ReceiveDatasHandler(this.ReceivedPackets);

            Characters = new List<SunDofus.World.Game.Characters.Character>();
            Friends = new List<string>();
            Enemies = new List<string>();

            Commander = new RealmCommander(this);
            parser = new RealmParser(this);

            Player = null;
            Authentified = false;

            Send("HG");
        }