supervisor-simulator/scripts/Models/DisciplineDefinitions.cs
2026-01-18 20:05:23 +08:00

60 lines
1.5 KiB
C#

using System.Collections.Generic;
namespace Models;
/// <summary>
/// 学科定义(决定开局流派、核心资源循环与卡池)
/// 设计说明:
/// 1) 学科只描述“规则与池子”,具体资源结算由系统层执行。
/// 2) Buff 使用 ModifierBundle + RuleIds 组合,便于非数值机制扩展。
/// 注意事项:
/// - DisciplineId 应稳定,用于存档与 Mod 兼容。
/// 未来扩展:
/// - 可加入“学科子方向”与“跨学科解锁条件”。
/// </summary>
public sealed class DisciplineDefinition {
/// <summary>
/// 基础头部信息
/// </summary>
public DefinitionHeader Header { get; set; } = new();
/// <summary>
/// 学科Buff
/// </summary>
public DisciplineBuff Buff { get; set; } = new();
/// <summary>
/// 角色池ID列表
/// </summary>
public List<string> RolePoolIds { get; } = new();
/// <summary>
/// 物品池ID列表
/// </summary>
public List<string> ItemPoolIds { get; } = new();
/// <summary>
/// 任务关键词ID列表
/// </summary>
public List<string> TaskKeywordIds { get; } = new();
}
/// <summary>
/// 学科Buff定义
/// </summary>
public sealed class DisciplineBuff {
/// <summary>
/// 名称
/// </summary>
public LocalizedText Name { get; set; } = new();
/// <summary>
/// 描述
/// </summary>
public LocalizedText Description { get; set; } = new();
/// <summary>
/// 修正包
/// </summary>
public ModifierBundle Modifiers { get; set; } = new();
}