public override void BeforePatch() { IGConsole.RegisterCommand <CommandRate>(this); ModInput.RegisterBinding(this, "RateIncrement", KeyCode.KeypadPlus).ListenKeyDown(Increment); ModInput.RegisterBinding(this, "RateDecrement", KeyCode.KeypadMinus).ListenKeyDown(Decrement); }
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"); }
public Placer() { IGConsole.RegisterCommand(new Command_tryplace(this)); if (SceneManager.GetActiveScene().name == "gameplay") { Init(); } else { SceneManager.activeSceneChanged += DelayedInit; } }
public Client() { IGConsole.RegisterCommand(new Command_connect()); IGConsole.RegisterCommand(new Command_disconnect()); savesPath = Application.persistentDataPath + "/saves/multiplayer"; }
public override void BeforePatch() { IGConsole.RegisterCommand <Command_add>(this); }
public override void AfterPatch() { IGConsole.RegisterCommand <Command_normalsave>(this); IGConsole.Log($"BetterSaves v{Version.ToString()} initialized"); }