protected override void Format00Handler(LoginClient client, ClientFormat00 format)
        {
            if (ServerContext.Config.UseLobby)
            {
                if (format.Version == ServerContext.Config.ClientVersion)
                {
                    client.Send(new ServerFormat00
                    {
                        Type       = 0x00,
                        Hash       = MServerTable.Hash,
                        Parameters = client.Encryption.Parameters
                    });
                }
            }


            if (ServerContext.Config.DevMode)
            {
                if (ServerContext.Config.GameMasters != null)
                {
                    foreach (var unused in ServerContext.Config.GameMasters)
                    {
                        var aisling = StorageManager.AislingBucket.Load(unused);

                        if (aisling != null)
                        {
                            LoginAsAisling(client, aisling);
                            break;
                        }
                    }
                }
            }
        }
예제 #2
0
 /// <summary>
 ///     Send Encryption Parameters.
 /// </summary>
 protected override void Format00Handler(LoginClient client, ClientFormat00 format)
 {
     if (format.Version == 718)
     {
         client.Send(new ServerFormat00
         {
             Type       = 0x00,
             Hash       = MServerTable.Hash,
             Parameters = client.Encryption.Parameters
         });
     }
 }
예제 #3
0
 protected virtual void Format00Handler(TClient client, ClientFormat00 format)
 {
 }
 protected abstract void Format00Handler(LoginClient client, ClientFormat00 format);