Esempio n. 1
0
 private static void Initialise()
 {
     List<Console.Command.Argument> newArguments = new List<Console.Command.Argument>();
     newArguments.Add(new Console.Command.Argument("level", "The index of the level to load (0-" + (Application.levelCount - 1) + ")", true));
     Console.Command newCommand = new Console.Command("load_level", "Load a level by index", newArguments, LoadCommand);
     Console.RegisterCommand(newCommand);
 }
Esempio n. 2
0
        private static void Initialise()
        {
            Console.Command newCommand;
            List<Console.Command.Argument> newArguments;

            newArguments = new List<Console.Command.Argument>();
            newArguments.Add(new Console.Command.Argument("factor", "The downscale factor for textures (0-3)", true));
            newCommand = new Console.Command("gfx_texture_downscale", "Determines the quality of the game's textures. Higher values mean smaller textures.", newArguments, TextureQualityCommand, TextureQualityValueReturn);
            Console.RegisterCommand(newCommand);
        }