Example #1
0
        public override void BeforePatch()
        {
            IGConsole.RegisterCommand <CommandRate>(this);

            ModInput.RegisterBinding(this, "RateIncrement", KeyCode.KeypadPlus).ListenKeyDown(Increment);
            ModInput.RegisterBinding(this, "RateDecrement", KeyCode.KeypadMinus).ListenKeyDown(Decrement);
        }
Example #2
0
 public void Init()
 {
     client = new Client();
     placer = new Placer();
     IGConsole.RegisterCommand(new Command_find());
     IGConsole.RegisterCommand(new Command_findobj());
     IGConsole.Log($"Polyglot v{ModVersion.ToString()} initialized");
 }
Example #3
0
 public Placer()
 {
     IGConsole.RegisterCommand(new Command_tryplace(this));
     if (SceneManager.GetActiveScene().name == "gameplay")
     {
         Init();
     }
     else
     {
         SceneManager.activeSceneChanged += DelayedInit;
     }
 }
Example #4
0
 public Client()
 {
     IGConsole.RegisterCommand(new Command_connect());
     IGConsole.RegisterCommand(new Command_disconnect());
     savesPath = Application.persistentDataPath + "/saves/multiplayer";
 }
Example #5
0
 public override void BeforePatch()
 {
     IGConsole.RegisterCommand <Command_add>(this);
 }
Example #6
0
 public override void AfterPatch()
 {
     IGConsole.RegisterCommand <Command_normalsave>(this);
     IGConsole.Log($"BetterSaves v{Version.ToString()} initialized");
 }