function control
parent
3e21db3b92
commit
1bfe45c373
|
@ -1,3 +1,3 @@
|
|||
Id BornItem SpeedFormula InitialEnergy EnergyRecoverSpeed ActionPowerRormula Speed HeroNumlimit EquipNumlimit WorldTalking BornPosition
|
||||
int mut,int#int,2 mut,float#float,1 int int mut,int#int,1 mut,int#int,1 int int int mut,int#int,1
|
||||
1 3#10000|14#90000|10008#1|10013#1|10023#1|19#20|1503#8|6001#1|6002#1|6003#1|6004#1|6005#1|6006#1|6007#1|6008#1|6009#1|6010#1|6011#1|6012#1|6013#1|6014#1|6015#1|6016#1|6017#1|6018#1|6019#1|6020#1|6021#1|6022#1|6023#1|6024#1|6025#1|6026#1|6027#1|6028#1|6029#1|6030#1|6031#1|6032#1 0#0#0.3164#0 100 2 0#0#1#0 70#100 999 9999 1 05#09
|
||||
int mut,int#int,2 mut,float#float,1 int mut,int#int,1 mut,int#int,1 mut,int#int,1 int int int mut,int#int,1
|
||||
1 3#10000|14#90000|10008#1|10013#1|10023#1|19#20|1503#8|6001#1|6002#1|6003#1|6004#1|6005#1|6006#1|6007#1|6008#1|6009#1|6010#1|6011#1|6012#1|6013#1|6014#1|6015#1|6016#1|6017#1|6018#1|6019#1|6020#1|6021#1|6022#1|6023#1|6024#1|6025#1|6026#1|6027#1|6028#1|6029#1|6030#1|6031#1|6032#1 0#0#0.3164#0 100 2#5 0#0#1#0 70#100 999 9999 1 05#09
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
Id OpenRules
|
||||
int mut,int#int,1
|
||||
1 null
|
||||
2 null
|
||||
3 null
|
||||
4 null
|
||||
5 null
|
||||
6 null
|
||||
7 null
|
||||
8 null
|
||||
9 null
|
||||
10 null
|
||||
11 null
|
||||
12 null
|
||||
13 null
|
|
@ -0,0 +1,37 @@
|
|||
package com.ljsd.jieling.config;
|
||||
|
||||
import com.ljsd.jieling.core.FunctionIdEnum;
|
||||
import com.ljsd.jieling.logic.STableManager;
|
||||
import com.ljsd.jieling.logic.Table;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@Table(name ="GlobalSystemConfig")
|
||||
public class SGlobalSystemConfig implements BaseConfig {
|
||||
|
||||
private int id;
|
||||
|
||||
private int[] openRules;
|
||||
|
||||
private static Map<Integer,SGlobalSystemConfig> sGlobalSystemConfigMap;
|
||||
|
||||
|
||||
@Override
|
||||
public void init() throws Exception {
|
||||
sGlobalSystemConfigMap = STableManager.getConfig(SGlobalSystemConfig.class);
|
||||
}
|
||||
|
||||
public static SGlobalSystemConfig getsGlobalSystemConfigByFunctionId(FunctionIdEnum functionId) {
|
||||
return sGlobalSystemConfigMap.get(functionId.getFunctionId());
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public int[] getOpenRules() {
|
||||
return openRules;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
package com.ljsd.jieling.core;
|
||||
|
||||
/**
|
||||
* 1 招募 Lottery
|
||||
* 2 编队 Team
|
||||
* 3 异妖 DifferDemons
|
||||
* 4 公会 Guild
|
||||
* 5 锻造 WorkShop
|
||||
* 6 百味居 Foods
|
||||
* 7 冒险 Adventure
|
||||
* 8 竞技场 Arena
|
||||
* 9 汉元之境
|
||||
* 10 亡魂之海
|
||||
* 11 综合副本
|
||||
* 12 每日任务 DailyTasks
|
||||
* 13 世界boss WorldBoss
|
||||
* 14 聊天 Talking
|
||||
*/
|
||||
public enum FunctionIdEnum {
|
||||
Lottery(1),
|
||||
Team(2),
|
||||
DifferDemons(3),
|
||||
Guild(4),
|
||||
WorkShop(5),
|
||||
Foods(6),
|
||||
Adventure(7),
|
||||
Arena(8),
|
||||
|
||||
DailyTasks(12),
|
||||
WorldBoss(13),
|
||||
Talking(14);
|
||||
private int functionId;
|
||||
|
||||
private FunctionIdEnum(int functionId) {
|
||||
this.functionId = functionId;
|
||||
}
|
||||
|
||||
public int getFunctionId() {
|
||||
return functionId;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue