feat: add ClaimLinkConfig with configurable buffer size
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
namespace ClaimLink;
|
||||
|
||||
internal class ClaimLinkConfig
|
||||
{
|
||||
public int BufferSize = 16;
|
||||
}
|
||||
@@ -13,6 +13,7 @@ public class ClaimLinkModSystem : ModSystem
|
||||
internal static IGroupManager Groups = null!;
|
||||
internal static IWorldAccessor World = null!;
|
||||
internal static IPlayerDataManager PlayerData = null!;
|
||||
internal static ClaimLinkConfig Config = null!;
|
||||
internal CommandListener? CmdListener;
|
||||
internal GroupCommandListener? GroupCmdListener;
|
||||
|
||||
@@ -25,6 +26,8 @@ public class ClaimLinkModSystem : ModSystem
|
||||
Groups = api.Groups;
|
||||
Logger = api.Logger;
|
||||
PlayerData = api.PlayerData;
|
||||
Config = api.LoadModConfig<ClaimLinkConfig>("claimlink.json") ?? new ClaimLinkConfig();
|
||||
api.StoreModConfig(Config, "claimlink.json");
|
||||
Registry = new ClaimLinkRegistry(api.WorldManager.SaveGame);
|
||||
|
||||
CmdListener = new CommandListener();
|
||||
|
||||
Reference in New Issue
Block a user