public static void Help() { DevConsole.Log("-- Help --", "green"); string text = string.Empty; CommandBase[] consoleCommands = DevConsole.CommandArray(); for (int i = 0; i < consoleCommands.Length; i++) { text += "\n<color=orange>" + consoleCommands[i].Title + DevConsole.GetParameters(consoleCommands[i]) + "</color>" + (consoleCommands[i].DescriptiveText == null ? string.Empty : " //" + consoleCommands[i].DescriptiveText); } DevConsole.Log(text); DevConsole.Log("<color=orange>Note:</color> If the function has no parameters you <color=red> don't</color> need to use the parameter modifier."); DevConsole.Log("<color=orange>Note:</color> You <color=red>don't</color> need to use the trailing parameter modifier either"); }
public static void NewCharacter(Vector3 pos, string name = "") { World world; Tile t; if (ModUtils.GetCurrentWorld(out world) && ModUtils.GetTileAt(pos, out t)) { Character character = world.CharacterManager.Create(t); if (character != null) { if (name != string.Empty) { character.name = name; } DevConsole.Log("Say hello to: " + character.GetName()); } } }
public static void DoBuildHelp() { DevConsole.Log("Does build mode using the furniture/floor/whatever type provided at position pos"); DevConsole.Log("The options for build mode are: FLOOR = 0, ROOMBEHAVIOUR= 1, FURNITURE= 2, UTILITY = 3, and DECONSTRUCT= 4"); }
public static void Status() { DevConsole.Log("Developer Mode is " + (CommandSettings.DeveloperModeToggle ? "on" : "off"), "yellow"); DevConsole.Log("Time is " + (TimeManager.Instance.IsPaused ? "paused" : TimeManager.Instance.TimeScale + "x"), "yellow"); }
public static void GetThermallDiffusivity(Vector3 pos) { DevConsole.Log("Thermal Diffusivity: " + GetCurrentWorld().temperature.GetThermalDiffusivity((int)pos.x, (int)pos.y, (int)pos.z), "green"); }
public static void GetTemperature(Vector3 pos) { DevConsole.Log("Temperature: " + GetCurrentWorld().temperature.GetTemperature((int)pos.x, (int)pos.y, (int)pos.z), "green"); }