예제 #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);
        }
예제 #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");
 }
예제 #3
0
 public Placer()
 {
     IGConsole.RegisterCommand(new Command_tryplace(this));
     if (SceneManager.GetActiveScene().name == "gameplay")
     {
         Init();
     }
     else
     {
         SceneManager.activeSceneChanged += DelayedInit;
     }
 }
예제 #4
0
 public Client()
 {
     IGConsole.RegisterCommand(new Command_connect());
     IGConsole.RegisterCommand(new Command_disconnect());
     savesPath = Application.persistentDataPath + "/saves/multiplayer";
 }
예제 #5
0
 public override void BeforePatch()
 {
     IGConsole.RegisterCommand <Command_add>(this);
 }
예제 #6
0
 public override void AfterPatch()
 {
     IGConsole.RegisterCommand <Command_normalsave>(this);
     IGConsole.Log($"BetterSaves v{Version.ToString()} initialized");
 }