【调整】json、xml、lua、yaml等数据源支持int类型的enum数据

main
walon 2022-02-24 10:33:09 +08:00
parent 480b839d31
commit e977a363ef
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ namespace Luban.Job.Cfg.DataCreators
public DType Accept(TEnum type, JsonElement x, DefAssembly ass)
{
return new DEnum(type, x.GetString());
return new DEnum(type, x.ToString());
}
public DType Accept(TString type, JsonElement x, DefAssembly ass)

View File

@ -23,7 +23,7 @@ namespace Luban.Job.Cfg.DataCreators
private static string GetTextValue(YamlNode node)
{
return ((string)node);
return node.ToString();
}
public DType Accept(TBool type, YamlNode x, DefAssembly y)