读地图信息

back_recharge
jiahuiwen 2019-01-09 16:06:34 +08:00
parent 841218be5a
commit 8c3fafda61
2 changed files with 26 additions and 2 deletions

View File

@ -0,0 +1,21 @@
package com.ljsd.jieling.handler.map;
public class LittleEventType {
/**
* 1
* 2 id#0-11#num
* 3
* 4
* 5
* 6
* 7
*/
public static final int fight = 1;
public static final int attribute = 2;
public static final int item = 3;
public static final int reward = 4;
public static final int scout = 5;
public static final int leave = 6;
public static final int choice = 7;
}

View File

@ -121,13 +121,16 @@ public class STableManager {
public static <T> Map<Integer, Map<Integer, T>> getMapConfig(Class<T> clazz) throws Exception {
Map<Integer, Map<Integer, T>> map = new HashMap<>();
String tableName = clazz.getAnnotation(Table.class).name();
for (int i = 1; i < 100; i++) {
int mapType = 101;
for (int i = 101; i < 1000; i++) {
Map<Integer, T> mapConf = new HashMap<>();
tableName = tableName + i;
String path = SysUtil.getPath("conf", "server", tableName + ".txt");
File file = new File(path);
if (!file.exists()) {
break;
mapType += 100;
i = mapType;
continue;
}
String line;
List<String> key = new ArrayList<>();