----------------------------------------------------------------------
##var id desc attr_name default_val
##type int string string float
## id 属性名 字段名 默认值
----------------------------------------------------------------------
1 生命值 hp 0
2 hp_base 0
3 hp_add 0
4 hp_rate 0
----------------------------------------------------------------------
我想在导表的时候额外生成一个C#类,存储字段名内容作为字符串常量,像这样:
public class GameAttrName()
{
public const string hp = "hp",
public const string hp_base = "hp_base",
public const string hp_add = "hp_add",
public const string hp_rate = "hp_rate",
}
表格结构:
我想在导表的时候额外生成一个C#类,存储字段名内容作为字符串常量,像这样:
public class GameAttrName() { public const string hp = "hp", public const string hp_base = "hp_base", public const string hp_add = "hp_add", public const string hp_rate = "hp_rate", }
请问要怎么做?