public static void RegisterCommand(CoreConsole.CommandDescription desc) { CoreConsole.RegisterCommand(desc); if (plugin_Commands.ContainsKey(desc.plugin)) plugin_Commands[desc.plugin].Add(desc); else { plugin_Commands[desc.plugin] = new List<CoreConsole.CommandDescription>(); plugin_Commands[desc.plugin].Add(desc); } }
void Awake() { if (_instance != null && _instance != this) { DestroyImmediate(this, true); return; } DontDestroyOnLoad(this); _instance = this; }
public static void Log(object message, CoreConsole.MessageType messageType, Color displayColor) { CoreConsole.Log(message, messageType, displayColor); }
public CommandDescription(string _plugin, string _command, string _command_args, string _description_small, CoreConsole.DebugCommand _callback) { plugin = _plugin; command = _command.ToLower(); command_args = _command_args; description_small = _description_small; description_Long = string.Empty; callback = _callback; }
public static void Log(object message, CoreConsole.MessageType messageType) { CoreConsole.Log(message, messageType); }