C-城建.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. [
  2. {
  3. "excel_file_name": "C-城建.xlsx",
  4. "sheets": [
  5. {
  6. "sheet_name": "Sheet1",
  7. "row_offset": 1,
  8. "outputs": [
  9. {
  10. "enable": true,
  11. "read_type": "type_sjson",
  12. "parser_id": "table",
  13. "file_name": "facility.json",
  14. "gen_codes": [
  15. {
  16. "read_type": "type_go"
  17. }
  18. ]
  19. },
  20. {
  21. "enable": true,
  22. "read_type": "type_cjson",
  23. "parser_id": "table_list",
  24. "file_name": "FacilityCfg.json",
  25. "gen_codes": [
  26. {
  27. "read_type": "type_csharp"
  28. }
  29. ]
  30. }
  31. ],
  32. "indexes": [
  33. {
  34. "index_names": "ID",
  35. "is_unique": true
  36. }
  37. ],
  38. "heads": [
  39. {
  40. "key": "ID",
  41. "name": "ID",
  42. "side": "cs",
  43. "type_sjson": "int",
  44. "type_go": "int32",
  45. "type_cjson": "int",
  46. "type_csharp": "int"
  47. },
  48. {
  49. "key": "名称Lang",
  50. "name": "NameLang",
  51. "side": "c",
  52. "type_sjson": "string",
  53. "type_go": "string",
  54. "type_cjson": "string",
  55. "type_csharp": "string"
  56. },
  57. {
  58. "desc": "建筑对应的卡片资源名称",
  59. "key": "建筑Card",
  60. "name": "BuildingCard",
  61. "side": "c",
  62. "type_sjson": "string",
  63. "type_go": "string",
  64. "type_cjson": "string",
  65. "type_csharp": "string"
  66. },
  67. {
  68. "key": "类型",
  69. "name": "Type",
  70. "side": "c",
  71. "type_sjson": "int",
  72. "type_go": "int32",
  73. "type_cjson": "int",
  74. "type_csharp": "GameConfig.ConfigGen.FacilityType"
  75. },
  76. {
  77. "key": "前置建筑",
  78. "name": "PreFacilities",
  79. "side": "cs",
  80. "type_sjson": "array",
  81. "type_go": "types.PairList[int32, int32]",
  82. "type_cjson": "string",
  83. "type_csharp": "string"
  84. },
  85. {
  86. "key": "描述Lang",
  87. "name": "DesLang",
  88. "side": "c",
  89. "type_sjson": "string",
  90. "type_go": "string",
  91. "type_cjson": "string",
  92. "type_csharp": "string"
  93. },
  94. {
  95. "key": "序号",
  96. "name": "Index",
  97. "side": "c",
  98. "type_cjson": "int",
  99. "type_csharp": "int"
  100. },
  101. {
  102. "key": "行数",
  103. "name": "Col",
  104. "side": "c",
  105. "type_sjson": "int",
  106. "type_go": "int32",
  107. "type_cjson": "int",
  108. "type_csharp": "int"
  109. },
  110. {
  111. "key": "列数",
  112. "name": "Row",
  113. "side": "c",
  114. "type_sjson": "int",
  115. "type_go": "int32",
  116. "type_cjson": "int",
  117. "type_csharp": "int"
  118. },
  119. {
  120. "key": "主堡等级",
  121. "name": "FacilityLevel",
  122. "side": "c",
  123. "type_sjson": "int",
  124. "type_go": "int32",
  125. "type_cjson": "int",
  126. "type_csharp": "int"
  127. },
  128. {
  129. "key": "特殊属性Lang",
  130. "name": "SpecialAttrsLang",
  131. "side": "c",
  132. "type_cjson": "string",
  133. "type_csharp": "string"
  134. }
  135. ]
  136. }
  137. ]
  138. }
  139. ]