Exemple #1
0
 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);
     }
 }
Exemple #2
0
        void Awake() {
            if (_instance != null && _instance != this) {
                DestroyImmediate(this, true);
                return;
            }

            DontDestroyOnLoad(this);
            _instance = this;
        }
Exemple #3
0
 public static void Log(object message, CoreConsole.MessageType messageType, Color displayColor)
 {
     CoreConsole.Log(message, messageType, displayColor);
 }
Exemple #4
0
 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;
 }
Exemple #5
0
 public static void Log(object message, CoreConsole.MessageType messageType)
 {
     CoreConsole.Log(message, messageType);
 }