Răsfoiți Sursa

更新配置

smile 3 săptămâni în urmă
părinte
comite
0c70aae1d3

+ 7 - 2
GameConfig/gen_pojo_from_xls_json.js

@@ -76,7 +76,7 @@ function isInteger(num) {
 
 function inferJavaType(value) {
 	if (value === null || value === undefined) return 'String';
-	if (typeof value === 'number') return isInteger(value) ? 'Integer' : 'Double';
+	if (typeof value === 'number') return isInteger(value) ? 'Integer' : 'BigDecimal';
 	if (typeof value === 'boolean') return 'Boolean';
 	if (typeof value === 'string') return 'String';
 	if (Array.isArray(value)) {
@@ -175,6 +175,11 @@ function generateJavaClass(pkg, className, fieldsOrder, fieldTypes, fieldComment
 			usedTypes.add('java.util.List');
 		} else if (type === 'List<Object>') {
 			usedTypes.add('java.util.List');
+		} else if (type === 'List<BigDecimal>') {
+			usedTypes.add('java.util.List');
+			usedTypes.add('java.math.BigDecimal');
+		} else if (type === 'BigDecimal') {
+			usedTypes.add('java.math.BigDecimal');
 		}
 	}
 	
@@ -197,7 +202,7 @@ function generateJavaClass(pkg, className, fieldsOrder, fieldTypes, fieldComment
 	
 	// Add path field using the actual JSON filename
 	lines.push('\t/** JSON 配置文件路径 */');
-	lines.push('\tpublic static final String path = "table/' + jsonFileName + '";');
+	lines.push('\tpublic static final String path = "' + jsonFileName + '";');
 	lines.push('');
 	
 	// Add fields

+ 4 - 3
protocol/ws_battle_progress_request.proto

@@ -17,9 +17,10 @@ message BattleProgressRequest {
   repeated MonsterVo monsters = 2 ; // 怪物数组
   optional bool battle_over = 3 [default = false];       // 是否结束战斗 true 结束
   optional bool is_fish_scheme = 4 [default = false];    // 是否鱼阵 true 是
-  optional bool is_violent =5 [default = false];         // 是否狂暴模式 true 是
-  optional int32 scene_type =6 [default= 1 ];            // 场地类型 1:普通场 2:中级场 3:高级场
-  repeated CommonRequest envelope = 7;                   // 公共必传参数集
+  optional int32 fish_group_id =5 [default= 1 ];        // 鱼阵方案组id
+  optional bool is_violent =6 [default = false];         // 是否狂暴模式 true 是
+  optional int32 scene_type =7 [default= 1 ];            // 场地类型 1:普通场 2:中级场 3:高级场
+  repeated CommonRequest envelope = 8;                   // 公共必传参数集
 }
 
 message MonsterVo{