PotatoePet-AdvancedREPO_Config icon

AdvancedREPO Config

Configuration framework capable of synchronizing host configuration with connected clients.

Last updated 4 days ago
Total downloads 20824
Total rating 2 
Categories Libraries Client-side Server-side
Dependency string PotatoePet-AdvancedREPO_Config-1.0.2
Dependants 19 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
PotatoePet-AdvancedREPO_Utils-1.0.0 icon
PotatoePet-AdvancedREPO_Utils

Utilities for AdvancedREPO mods.

Preferred version: 1.0.0
PotatoePet-AdvancedREPO_Patcher-1.0.0 icon
PotatoePet-AdvancedREPO_Patcher

Pre-patcher framework for AdvancedREPO mods.

Preferred version: 1.0.0

README

AdvancedREPO.Config

Configuration framework which allows the synchronization of BepInEx configurations from host to clients.

If you want to use this as a developer you can simply use the extension method .Sync() for any ConfigEntry you've created like this:

StaminaPerUpgrade = configFile.Bind<int>(
    new ConfigDefinition("Stamina", "Upgrade stamina"), 
    10, 
    new ConfigDescription("How much stamina every upgrade gives.", new AcceptableValueRange<int>(0, 100)))
    .Sync();

This will return a ConfigField<int>. During gameplay simply read the .Value of this ConfigField<int>. Synchronization will be done by the framework on level start.

Source

The source code is licensed under a MIT license and available here: https://github.com/FluffyFishGames/AdvancedREPO/tree/main