GeWuYou c9d2306295 feat(generator): 添加JSON schema配置代码生成功能
- 实现SchemaConfigGenerator源代码生成器
- 支持从JSON schema文件生成配置类型和表包装类
- 添加ConfigSchemaDiagnostics诊断系统
- 集成System.Text.Json包依赖
- 生成强类型的配置访问接口
- 支持多种数据类型包括整数、浮点数、布尔值、字符串和数组
- 实现id字段作为表主键的约束验证
- 添加完整的单元测试和快照验证
2026-03-30 18:29:31 +08:00

33 lines
1.0 KiB
Plaintext

// <auto-generated />
#nullable enable
namespace GFramework.Game.Config.Generated;
/// <summary>
/// Auto-generated config type for schema file 'monster.schema.json'.
/// This type is generated from JSON schema so runtime loading and editor tooling can share the same contract.
/// </summary>
public sealed partial class MonsterConfig
{
/// <summary>
/// Gets or sets the value mapped from schema property 'id'.
/// </summary>
public int Id { get; set; }
/// <summary>
/// Gets or sets the value mapped from schema property 'name'.
/// </summary>
public string Name { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the value mapped from schema property 'hp'.
/// </summary>
public int? Hp { get; set; }
/// <summary>
/// Gets or sets the value mapped from schema property 'dropItems'.
/// </summary>
public global::System.Collections.Generic.IReadOnlyList<string> DropItems { get; set; } = global::System.Array.Empty<string>();
}