public override void Handle(object sender, Packet packet)
        {
            TestDataEventArgs eventArgs = ReferencePool.Acquire <TestDataEventArgs>();
            var msg = packet as MSG_LOGINSERVER_VALIDATE;

            eventArgs.Fill(new ServerInfo()
            {
                ip = msg.Ip, port = msg.Port, checkOutText = msg.CheckOutText.ToStringUtf8()
            });
            GameEntry.Event.Fire(this, eventArgs);
        }
Exemplo n.º 2
0
        private void UpdateData(object sender, GameEventArgs e)
        {
            TestDataEventArgs ne = e as TestDataEventArgs;

            ip           = ne.Body.ip;
            port         = ne.Body.port;
            checkOutText = ne.Body.checkOutText;

            TestLoginSuccessfulEventArgs eventArgs = ReferencePool.Acquire <TestLoginSuccessfulEventArgs>();

            GameEntry.Event.Fire(this, eventArgs);
        }