
R.E.P.O.
You are viewing a potentially older version of this package. View Latest Version

Edit mod configs in-game!
This mod only captures public static ConfigEntry fields/properties that are of type bool and int.
float entries technically work but they'll be rounded to an integer (at least for right now)By default, numerical entries are capped between -500 to 500.
If you want a customize this you can use the REPOConfigEntry attribute.
//bools can only have a custom name
[REPOConfigEntry("Enable")]
public static ConfigEntry<bool> toggle;
//ints can have a custom min/max
[REPOConfigEntry("Starting HP", min: 1, max: 100)]
public static ConfigEntry<int> startingHP;
//ints can also have a prefix/postfix for their label
[REPOConfigEntry("USD", min: 1, max: 100, prefix:"$", postfix:"")]
public static ConfigEntry<int> money;
//ints can also have a prefix or postfix string on their label
[REPOConfigEntry("Gamemode", "Creative", "Survival", "Spectator")]
public static ConfigEntry<int> gamemode;