Esempio n. 1
0
        private void OnServerInformation(InPacket packet)
        {
            var worldInformation = new WorldInformation();

            worldInformation.Decode(packet);
            Logger.Info($"Updated {worldInformation.Name} server information");
        }
Esempio n. 2
0
        private void OnServerRegisterResult(InPacket packet)
        {
            if (packet.Decode <bool>())
            {
                return;                        // TODO: disconnect?
            }
            var worldInformation = new WorldInformation();

            worldInformation.Decode(packet);
            Logger.Info($"Registered Center server, {worldInformation.Name}");
        }