miduo_server/tablemanager/src/main/java/config/SHeroSkin.java

103 lines
1.6 KiB
Java
Raw Normal View History

2020-10-31 09:58:34 +08:00
package config;
import manager.STableManager;
import manager.Table;
import java.util.HashMap;
import java.util.Map;
@Table(name ="HeroSkin")
public class SHeroSkin implements BaseConfig {
private int id;
private int type;
private int heroId;
private String readingName;
private int[][] unlockProperty;
private int[][] monomerProperty;
private int time;
private int isDefault;
private int order;
private int[] price;
2020-11-03 05:25:17 +08:00
private int[] headIcon;
2021-07-01 18:29:39 +08:00
private int show;
2020-10-31 09:58:34 +08:00
public static Map<Integer,SHeroSkin> skinMapByType;
@Override
public void init() throws Exception {
Map<Integer, SHeroSkin> config = STableManager.getConfig(SHeroSkin.class);
Map<Integer,SHeroSkin> skinMapByTypeTemp = new HashMap<>();
for(Map.Entry<Integer,SHeroSkin> entry:config.entrySet()){
skinMapByTypeTemp.put(entry.getValue().getType(),entry.getValue());
}
skinMapByType =skinMapByTypeTemp;
}
public int getId() {
return id;
}
public int getType() {
return type;
}
public int getHeroId() {
return heroId;
}
public String getReadingName() {
return readingName;
}
public int[][] getUnlockProperty() {
return unlockProperty;
}
public int[][] getMonomerProperty() {
return monomerProperty;
}
public int getTime() {
return time;
}
public int getIsDefault() {
return isDefault;
}
public int getOrder() {
return order;
}
public int[] getPrice() {
return price;
}
2020-11-03 05:25:17 +08:00
public int[] getHeadIcon() {
return headIcon;
}
2021-07-01 18:29:39 +08:00
public int getShow() {
return show;
}
2020-10-31 09:58:34 +08:00
}