Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

SFSSettings

dani0105 edited this page Apr 13, 2022 · 1 revision

SFSSettings

Description

Use this interface to create keybinding settings for your mod.

Events

There are not events for this interface.

Properties

There are not properties for this interface.

Public Methods

string getModId();

Get mod id. This is used to identify for keybiding for another mods.

  ModSettings.main.addKeybinding( MyLoadedSettings.My_Key, MyDefaultSettings.My_Key, "My_Key", MyLoadedSettings);

Implementation Example

// My Settigns class
public class MySettings : SFSSettings
{
  // key definition
  public KeybindingsPC.Key MyKey = KeyCode.T;

  public string getModId()
  {
      return 'MyModId';
  }

}