public static void RegisterCommands()
 {
     try
     {
         ConsoleCommandsDatabase.RegisterCommand(FeedMe.name, FeedMe.description, FeedMe.usage, FeedMe.Execute);
         ConsoleCommandsDatabase.RegisterCommand(CureMe.name, CureMe.description, CureMe.usage, CureMe.Execute);
     }
     catch (System.Exception ex)
     {
         DaggerfallUnity.LogMessage(ex.Message, true);
     }
 }
 public static void RegisterCommands()
 {
     try
     {
         ConsoleCommandsDatabase.RegisterCommand(OffsetDistance.name, OffsetDistance.description, OffsetDistance.usage, OffsetDistance.Execute);
         ConsoleCommandsDatabase.RegisterCommand(ChangeOffset.name, ChangeOffset.description, ChangeOffset.usage, ChangeOffset.Execute);
     }
     catch (Exception e)
     {
         Debug.LogError(string.Format("Error Registering RealGrass Console commands: {0}", e.Message));
     }
 }
 public static void RegisterCommands()
 {
     try
     {
         ConsoleCommandsDatabase.RegisterCommand(AddScopes.name, AddScopes.description, AddScopes.usage, AddScopes.Execute);
         ConsoleCommandsDatabase.RegisterCommand(Scope_Change_Intensity.name, Scope_Change_Intensity.description, Scope_Change_Intensity.usage, Scope_Change_Intensity.Execute);
     }
     catch (Exception e)
     {
         Debug.LogError(string.Format("Error Registering TelescopesAndBinoculars Console commands: {0}", e.Message));
     }
 }
 public static void RegisterCommands(RealGrass realGrass, RealGrassOptions options)
 {
     try
     {
         ConsoleCommandsDatabase.RegisterCommand(ToggleRealGrass.name, ToggleRealGrass.description, ToggleRealGrass.usage, ToggleRealGrass.Execute(realGrass));
         ConsoleCommandsDatabase.RegisterCommand(DetailObjectDistance.name, DetailObjectDistance.description, DetailObjectDistance.usage, DetailObjectDistance.Execute(realGrass, options));
     }
     catch (Exception e)
     {
         Debug.LogError(string.Format("Error Registering RealGrass Console commands: {0}", e.Message));
     }
 }
Пример #5
0
 public static void RegisterCommands()
 {
     try
     {
         ConsoleCommandsDatabase.RegisterCommand(RoadPathEditorCmd.name, RoadPathEditorCmd.description, RoadPathEditorCmd.usage, RoadPathEditorCmd.Execute);
         ConsoleCommandsDatabase.RegisterCommand(ExportRoadPathsCmd.name, ExportRoadPathsCmd.description, ExportRoadPathsCmd.usage, ExportRoadPathsCmd.Execute);
     }
     catch (Exception ex)
     {
         DaggerfallUnity.LogMessage(ex.Message, true);
     }
 }
Пример #6
0
 public static void RegisterCommands()
 {
     try
     {
         ConsoleCommandsDatabase.RegisterCommand(ToggleVibrantWind.name, ToggleVibrantWind.description, ToggleVibrantWind.usage, ToggleVibrantWind.Execute);
         ConsoleCommandsDatabase.RegisterCommand(VibrantWindDebug.name, VibrantWindDebug.description, VibrantWindDebug.usage, VibrantWindDebug.Execute);
     }
     catch (Exception e)
     {
         Debug.LogError(string.Format("Error Registering Vibrant Wind Console commands: {0}", e.Message));
     }
 }
 public static void RegisterCommands()
 {
     try
     {
         ConsoleCommandsDatabase.RegisterCommand(ToggleLoadingScreen.name, ToggleLoadingScreen.description, ToggleLoadingScreen.usage, ToggleLoadingScreen.Execute);
         ConsoleCommandsDatabase.RegisterCommand(SimulateLoadingScreen.name, SimulateLoadingScreen.description, SimulateLoadingScreen.usage, SimulateLoadingScreen.Execute);
     }
     catch (Exception e)
     {
         Debug.LogError(string.Format("Error Registering Loading Screen Console commands: {0}", e.Message));
     }
 }
Пример #8
0
 public static void RegisterCommands(VibrantWind vibrantWind)
 {
     try
     {
         ConsoleCommandsDatabase.RegisterCommand(ToggleVibrantWind.name, ToggleVibrantWind.description, ToggleVibrantWind.usage, ToggleVibrantWind.Execute(vibrantWind));
         ConsoleCommandsDatabase.RegisterCommand(VibrantWindDebug.name, VibrantWindDebug.description, VibrantWindDebug.usage, VibrantWindDebug.Execute(vibrantWind));
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
 }
Пример #9
0
 public static void RegisterRWCommands()
 {
     Debug.Log("[Realistic Wagon] Trying to register console commands.");
     try
     {
         ConsoleCommandsDatabase.RegisterCommand(GetWagon.name, GetWagon.description, GetWagon.usage, GetWagon.Execute);
         ConsoleCommandsDatabase.RegisterCommand(GetHorse.name, GetHorse.description, GetHorse.usage, GetHorse.Execute);
     }
     catch (Exception e)
     {
         Debug.LogError(string.Format("Error Registering RealisticWagon Console commands: {0}", e.Message));
     }
 }
 public static void RegisterCommands()
 {
     try
     {
         ConsoleCommandsDatabase.RegisterCommand(ManualRandomTeleport.name, ManualRandomTeleport.description, ManualRandomTeleport.usage, ManualRandomTeleport.Execute);
         ConsoleCommandsDatabase.RegisterCommand(TransformDungPos.name, TransformDungPos.description, TransformDungPos.usage, TransformDungPos.Execute);
         ConsoleCommandsDatabase.RegisterCommand(CurrentBlockInfo.name, CurrentBlockInfo.description, CurrentBlockInfo.usage, CurrentBlockInfo.Execute);
     }
     catch (Exception e)
     {
         Debug.LogError(string.Format("Error Registering RandomStartingDungeon Console commands: {0}", e.Message));
     }
 }
 public static void RegisterCommands()
 {
     try
     {
         ConsoleCommandsDatabase.RegisterCommand(DamageEquipment.name, DamageEquipment.description, DamageEquipment.usage, DamageEquipment.Execute);
         ConsoleCommandsDatabase.RegisterCommand(RepairEquipment.name, RepairEquipment.description, RepairEquipment.usage, RepairEquipment.Execute);
         ConsoleCommandsDatabase.RegisterCommand(ClearInventory.name, ClearInventory.description, ClearInventory.usage, ClearInventory.Execute);
     }
     catch (Exception e)
     {
         Debug.LogError(string.Format("Error Registering RepairTools Console commands: {0}", e.Message));
     }
 }
Пример #12
0
 public static void RegisterCommands()
 {
     try
     {
         ConsoleCommandsDatabase.RegisterCommand(PathEditorCmd.name, PathEditorCmd.description, PathEditorCmd.usage, PathEditorCmd.Execute);
         ConsoleCommandsDatabase.RegisterCommand(ExportRoadDataCmd.name, ExportRoadDataCmd.description, ExportRoadDataCmd.usage, ExportRoadDataCmd.Execute);
         ConsoleCommandsDatabase.RegisterCommand(ExportTrackDataCmd.name, ExportTrackDataCmd.description, ExportTrackDataCmd.usage, ExportTrackDataCmd.Execute);
         ConsoleCommandsDatabase.RegisterCommand(ExportRiverDataCmd.name, ExportRiverDataCmd.description, ExportRiverDataCmd.usage, ExportRiverDataCmd.Execute);
         ConsoleCommandsDatabase.RegisterCommand(ExportStreamDataCmd.name, ExportStreamDataCmd.description, ExportStreamDataCmd.usage, ExportStreamDataCmd.Execute);
         ConsoleCommandsDatabase.RegisterCommand(ExportPathsPngCmd.name, ExportPathsPngCmd.description, ExportPathsPngCmd.usage, ExportPathsPngCmd.Execute);
     }
     catch (Exception ex)
     {
         DaggerfallUnity.LogMessage(ex.Message, true);
     }
 }
Пример #13
0
 public static void RegisterCommands()
 {
     try
     {
         ConsoleCommandsDatabase.RegisterCommand(OffsetDistance.name, OffsetDistance.description, OffsetDistance.usage, OffsetDistance.Execute);
         ConsoleCommandsDatabase.RegisterCommand(DisableSmoothAnimations.name, DisableSmoothAnimations.description, DisableSmoothAnimations.usage, DisableSmoothAnimations.Execute);
         ConsoleCommandsDatabase.RegisterCommand(ChangeAttackSpeed.name, ChangeAttackSpeed.description, ChangeAttackSpeed.usage, ChangeAttackSpeed.Execute);
         ConsoleCommandsDatabase.RegisterCommand(ChangeWeaponIndex.name, ChangeWeaponIndex.description, ChangeWeaponIndex.usage, ChangeWeaponIndex.Execute);
         ConsoleCommandsDatabase.RegisterCommand(ChangeFramePos.name, ChangeFramePos.description, ChangeFramePos.usage, ChangeFramePos.Execute);
         ConsoleCommandsDatabase.RegisterCommand(ChangeFrameSpeed.name, ChangeFrameSpeed.description, ChangeFrameSpeed.usage, ChangeFrameSpeed.Execute);
     }
     catch (Exception e)
     {
         Debug.LogError(string.Format("Error Registering RealGrass Console commands: {0}", e.Message));
     }
 }
Пример #14
0
        private static string DisplayCommandDetails(string commandName)
        {
            string formatting =
                @"<b>{0} Command</b>
    <b>Description:</b> {1}
    <b>Usage:</b> {2}";

            try
            {
                ConsoleCommand command = ConsoleCommandsDatabase.GetCommand(commandName);
                return(string.Format(formatting, command.name, command.description, command.usage));
            }
            catch (NoSuchCommandException exception)
            {
                return(string.Format("Cannot find help information about {0}. Are you sure it is a valid command?", exception.command));
            }
        }
Пример #15
0
 public static void RegisterCommands()
 {
     try
     {
         ConsoleCommandsDatabase.RegisterCommand(ToggleEnhancedSky.name, ToggleEnhancedSky.description, ToggleEnhancedSky.usage, ToggleEnhancedSky.Execute);
         ConsoleCommandsDatabase.RegisterCommand(ToggleSunFlare.name, ToggleSunFlare.description, ToggleSunFlare.usage, ToggleSunFlare.Execute);
         ConsoleCommandsDatabase.RegisterCommand(SetCloudQuality.name, SetCloudQuality.description, SetCloudQuality.usage, SetCloudQuality.Execute);
         ConsoleCommandsDatabase.RegisterCommand(SetCloudSeed.name, SetCloudSeed.description, SetCloudSeed.usage, SetCloudSeed.Execute);
         ConsoleCommandsDatabase.RegisterCommand(SetMoonPhases.name, SetMoonPhases.description, SetMoonPhases.usage, SetMoonPhases.Execute);
         ConsoleCommandsDatabase.RegisterCommand(ToggleSkyObjectSize.name, ToggleSkyObjectSize.description, ToggleSkyObjectSize.usage, ToggleSkyObjectSize.Execute);
         ConsoleCommandsDatabase.RegisterCommand(ToggleMoonPhaseUpdating.name, ToggleMoonPhaseUpdating.description, ToggleMoonPhaseUpdating.usage, ToggleMoonPhaseUpdating.Execute);
         ConsoleCommandsDatabase.RegisterCommand(RefreshClouds.name, RefreshClouds.description, RefreshClouds.usage, RefreshClouds.Execute);
     }
     catch (Exception ex)
     {
         Debug.LogError(string.Format("Error Registering Enhanced Sky Console commands: {0}", ex.Message));
     }
 }
Пример #16
0
    /// <summary>
    /// (Advanced) Displays help information for the given command.
    /// </summary>
    private static string Help(params string[] args)
    {
        // if we got it wrong, get help about the HELP command
        if (args.Length == 0)
        {
            return(Help("HELP"));
        }

        // if we got it right, get help about the given command
        string         commandToGetHelpAbout = args[0].ToUpper();
        ConsoleCommand found;

        if (ConsoleCommandsDatabase.TryGetCommand(commandToGetHelpAbout, out found))
        {
            return(string.Format("Help information about {0}\n\r\tDescription: {1}\n\r\tUsage: {2}", commandToGetHelpAbout, found.description, found.usage));
        }
        else
        {
            return(string.Format("Cannot find help information about {0}. Are you sure it is a valid command?", commandToGetHelpAbout));
        }
    }
Пример #17
0
 void Start()
 {
     ConsoleCommandsDatabase.RegisterCommand("SPAWN", "Spawn a new game object from the given name and primitve type in front of the main camera. See PrimitiveType.", "SPAWN name primitiveType", Spawn);
     ConsoleCommandsDatabase.RegisterCommand("DESTROY", "Destroy the specified game object by name.", "DESTROY gameobject", Destroy);
 }
Пример #18
0
 void Start()
 {
     ConsoleCommandsDatabase.RegisterCommand(TestCommand.name, TestCommand.description, TestCommand.usage, TestCommand.Execute);
 }
Пример #19
0
 private void Start()
 {
     ConsoleCommandsDatabase.RegisterCommand(Locale_Print.name, Locale_Print.description, Locale_Print.usage, Locale_Print.Execute);
     ConsoleCommandsDatabase.RegisterCommand(Locale_Set.name, Locale_Set.description, Locale_Set.usage, Locale_Set.Execute);
     ConsoleCommandsDatabase.RegisterCommand(Locale_Debug.name, Locale_Debug.description, Locale_Debug.usage, Locale_Debug.Execute);
 }
Пример #20
0
 void Start()
 {
     ConsoleCommandsDatabase.RegisterCommand("QUIT", "Quits the application.", "QUIT", CustomCommands.Quit);
     ConsoleCommandsDatabase.RegisterCommand("SPAWN", "Spawn a new game object from the given name and primitve type in front of the main camera. See PrimitiveType.", "SPAWN [name] [primitiveType]", CustomCommands.Spawn);
     ConsoleCommandsDatabase.RegisterCommand("HELP", "Displays help information for the given command.", "HELP [command]", CustomCommands.Help);
 }