读地图信息
parent
841218be5a
commit
8c3fafda61
|
@ -0,0 +1,21 @@
|
|||
package com.ljsd.jieling.handler.map;
|
||||
|
||||
public class LittleEventType {
|
||||
|
||||
/**
|
||||
* 1 战斗
|
||||
* 2 判断属性(属性id#(0,-1,1)#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;
|
||||
}
|
|
@ -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<>();
|
||||
|
|
Loading…
Reference in New Issue