GeWuYou ad87f72ca6 feat(game): 添加游戏内容配置系统
- 实现基于YAML的配置文件管理和JSON Schema校验功能
- 提供YamlConfigSchemaValidator用于运行时配置校验和跨表引用检查
- 添加完整的单元测试覆盖配置加载器的各种场景
- 支持热重载功能,开发期修改配置文件后自动刷新运行时表
- 集成Source Generator生成配置类型和表包装类
- 提供VS Code插件支持配置浏览、编辑和校验操作
2026-04-01 12:38:52 +08:00

52 lines
1.5 KiB
Plaintext

// <auto-generated />
#nullable enable
namespace GFramework.Game.Config.Generated;
/// <summary>
/// Auto-generated config type for schema file 'monster.schema.json'.
/// Represents one monster entry generated from schema metadata.
/// </summary>
public sealed partial class MonsterConfig
{
/// <summary>
/// Unique monster identifier.
/// </summary>
/// <remarks>
/// Schema property: 'id'.
/// </remarks>
public int Id { get; set; }
/// <summary>
/// Localized monster display name.
/// </summary>
/// <remarks>
/// Schema property: 'name'.
/// Display title: 'Monster Name'.
/// Allowed values: Slime, Goblin.
/// Generated default initializer: = "Slime";
/// </remarks>
public string Name { get; set; } = "Slime";
/// <summary>
/// Gets or sets the value mapped from schema property 'hp'.
/// </summary>
/// <remarks>
/// Schema property: 'hp'.
/// Generated default initializer: = 10;
/// </remarks>
public int? Hp { get; set; } = 10;
/// <summary>
/// Referenced drop ids.
/// </summary>
/// <remarks>
/// Schema property: 'dropItems'.
/// Allowed values: potion, slime_gel.
/// References config table: 'item'.
/// Generated default initializer: = new string[] { "potion" };
/// </remarks>
public global::System.Collections.Generic.IReadOnlyList<string> DropItems { get; set; } = new string[] { "potion" };
}