feat(guild): add GuildConfig with ShippedDefaults
This commit is contained in:
26
SVSim.Database/Models/Config/GuildConfig.cs
Normal file
26
SVSim.Database/Models/Config/GuildConfig.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace SVSim.Database.Models.Config;
|
||||
|
||||
/// <summary>
|
||||
/// Guild-feature configuration: membership caps, search caps, stamp palette,
|
||||
/// and chat-polling intervals. All collection defaults live in
|
||||
/// <see cref="ShippedDefaults"/> (not property initializers) to survive the
|
||||
/// GameConfigService tier-merge correctly.
|
||||
/// </summary>
|
||||
[ConfigSection("Guild")]
|
||||
public sealed class GuildConfig
|
||||
{
|
||||
public int MaxMemberNum { get; init; } = 30;
|
||||
public int MaxSubLeaderNum { get; init; } = 2;
|
||||
public int SearchResultCap { get; init; } = 50;
|
||||
public int ChatPollIdleSeconds { get; init; } = 10;
|
||||
public int ChatPollActiveSeconds { get; init; } = 3;
|
||||
public List<int> UsableStampList { get; init; } = new();
|
||||
|
||||
public static GuildConfig ShippedDefaults() => new()
|
||||
{
|
||||
UsableStampList = Enumerable.Range(100001, 20).ToList(),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user