KeyHelp KeyHelpCreate(string text, int defaultKey)
    {
        KeyHelp h = new KeyHelp();

        h.Text       = text;
        h.DefaultKey = defaultKey;
        return(h);
    }
    KeyHelp[] keyhelps()
    {
        int n = 1024;

        KeyHelp[] helps = new KeyHelp[n];
        for (int i = 0; i < n; i++)
        {
            helps[i] = null;
        }
        Language language = game.language;
        int      count    = 0;

        helps[count++] = KeyHelpCreate(language.KeyMoveFoward(), GlKeys.W);
        helps[count++] = KeyHelpCreate(language.KeyMoveBack(), GlKeys.S);
        helps[count++] = KeyHelpCreate(language.KeyMoveLeft(), GlKeys.A);
        helps[count++] = KeyHelpCreate(language.KeyMoveRight(), GlKeys.D);
        helps[count++] = KeyHelpCreate(language.KeyJump(), GlKeys.Space);
        helps[count++] = KeyHelpCreate(language.KeyShowMaterialSelector(), GlKeys.B);
        helps[count++] = KeyHelpCreate(language.KeySetSpawnPosition(), GlKeys.P);
        helps[count++] = KeyHelpCreate(language.KeyRespawn(), GlKeys.O);
        helps[count++] = KeyHelpCreate(language.KeyReloadWeapon(), GlKeys.R);
        helps[count++] = KeyHelpCreate(language.KeyToggleFogDistance(), GlKeys.F);
        helps[count++] = KeyHelpCreate(game.platform.StringFormat(language.KeyMoveSpeed(), "1"), GlKeys.F1);
        helps[count++] = KeyHelpCreate(game.platform.StringFormat(language.KeyMoveSpeed(), "10"), GlKeys.F2);
        helps[count++] = KeyHelpCreate(language.KeyFreeMove(), GlKeys.F3);
        helps[count++] = KeyHelpCreate(language.KeyThirdPersonCamera(), GlKeys.F5);
        helps[count++] = KeyHelpCreate(language.KeyTextEditor(), GlKeys.F9);
        helps[count++] = KeyHelpCreate(language.KeyFullscreen(), GlKeys.F11);
        helps[count++] = KeyHelpCreate(language.KeyScreenshot(), GlKeys.F12);
        helps[count++] = KeyHelpCreate(language.KeyPlayersList(), GlKeys.Tab);
        helps[count++] = KeyHelpCreate(language.KeyChat(), GlKeys.T);
        helps[count++] = KeyHelpCreate(language.KeyTeamChat(), GlKeys.Y);
        helps[count++] = KeyHelpCreate(language.KeyCraft(), GlKeys.C);
        helps[count++] = KeyHelpCreate(language.KeyBlockInfo(), GlKeys.I);
        helps[count++] = KeyHelpCreate(language.KeyUse(), GlKeys.E);
        helps[count++] = KeyHelpCreate(language.KeyReverseMinecart(), GlKeys.Q);
        return(helps);
    }
 KeyHelp[] keyhelps()
 {
     int n = 1024;
     KeyHelp[] helps = new KeyHelp[n];
     for (int i = 0; i < n; i++)
     {
         helps[i] = null;
     }
     Language language = game.language;
     int count = 0;
     helps[count++] = KeyHelpCreate(language.KeyMoveFoward(), GlKeys.W);
     helps[count++] = KeyHelpCreate(language.KeyMoveBack(), GlKeys.S);
     helps[count++] = KeyHelpCreate(language.KeyMoveLeft(), GlKeys.A);
     helps[count++] = KeyHelpCreate(language.KeyMoveRight(), GlKeys.D);
     helps[count++] = KeyHelpCreate(language.KeyJump(), GlKeys.Space);
     helps[count++] = KeyHelpCreate(language.KeyShowMaterialSelector(), GlKeys.B);
     helps[count++] = KeyHelpCreate(language.KeySetSpawnPosition(), GlKeys.P);
     helps[count++] = KeyHelpCreate(language.KeyRespawn(), GlKeys.O);
     helps[count++] = KeyHelpCreate(language.KeyReloadWeapon(), GlKeys.R);
     helps[count++] = KeyHelpCreate(language.KeyToggleFogDistance(), GlKeys.F);
     helps[count++] = KeyHelpCreate(game.platform.StringFormat(language.KeyMoveSpeed(), "1"), GlKeys.F1);
     helps[count++] = KeyHelpCreate(game.platform.StringFormat(language.KeyMoveSpeed(), "10"), GlKeys.F2);
     helps[count++] = KeyHelpCreate(language.KeyFreeMove(), GlKeys.F3);
     helps[count++] = KeyHelpCreate(language.KeyThirdPersonCamera(), GlKeys.F5);
     helps[count++] = KeyHelpCreate(language.KeyTextEditor(), GlKeys.F9);
     helps[count++] = KeyHelpCreate(language.KeyFullscreen(), GlKeys.F11);
     helps[count++] = KeyHelpCreate(language.KeyScreenshot(), GlKeys.F12);
     helps[count++] = KeyHelpCreate(language.KeyPlayersList(), GlKeys.Tab);
     helps[count++] = KeyHelpCreate(language.KeyChat(), GlKeys.T);
     helps[count++] = KeyHelpCreate(language.KeyTeamChat(), GlKeys.Y);
     helps[count++] = KeyHelpCreate(language.KeyCraft(), GlKeys.C);
     helps[count++] = KeyHelpCreate(language.KeyBlockInfo(), GlKeys.I);
     helps[count++] = KeyHelpCreate(language.KeyUse(), GlKeys.E);
     helps[count++] = KeyHelpCreate(language.KeyReverseMinecart(), GlKeys.Q);
     return helps;
 }
 KeyHelp KeyHelpCreate(string text, int defaultKey)
 {
     KeyHelp h = new KeyHelp();
     h.Text = text;
     h.DefaultKey = defaultKey;
     return h;
 }