删除不要的字段
parent
185467d2fa
commit
5cf78e6bc9
|
@ -149,9 +149,6 @@ public class MapLogic {
|
|||
for (Map.Entry<Integer, Cell> entry : mapManager.getMapInfo().entrySet()) {
|
||||
cellToProto(cells, entry);
|
||||
}
|
||||
for (Map.Entry<Integer, Cell> entry : mapManager.getTypeEight().entrySet()) {
|
||||
cellToProto(cells, entry);
|
||||
}
|
||||
MapInfoProto.MapEnterResponse.Builder mapEnterResponse = MapInfoProto.MapEnterResponse.newBuilder();
|
||||
mapEnterResponse.setLeftTime(getLeftTime(user));
|
||||
for (Map.Entry<Integer, Integer> buffEntry : mapManager.getFoodBufferMap().entrySet()) {
|
||||
|
@ -244,7 +241,6 @@ public class MapLogic {
|
|||
public void initMap(MapManager mapManager, User user) throws Exception {
|
||||
Map<Integer, SCMap> scMap = SCMap.sCMap.get(mapManager.getCurMapId());
|
||||
Map<Integer, Cell> newMap = new HashMap<>();
|
||||
Map<Integer, Cell> spicelMap = new HashMap<>();
|
||||
Random random = new Random();
|
||||
for (Map.Entry<Integer, SCMap> entry : scMap.entrySet()) {
|
||||
SCMap scMap1 = entry.getValue();
|
||||
|
@ -271,11 +267,7 @@ public class MapLogic {
|
|||
continue;
|
||||
}
|
||||
Cell cellValue = new Cell(xy, mapPointConfig.getInitialEventId(), mapPointConfig.getId());
|
||||
if (mapPointConfig.getStyle() == EventType.allEvents || mapPointConfig.getStyle() == EventType.hinder) {
|
||||
spicelMap.put(xy, cellValue);
|
||||
} else {
|
||||
newMap.put(xy, cellValue);
|
||||
}
|
||||
newMap.put(xy, cellValue);
|
||||
}
|
||||
if (user.getPlayerInfoManager().getMapId() == 100) {
|
||||
SGameSetting sGameSetting = SGameSetting.getGameSetting();
|
||||
|
@ -291,7 +283,6 @@ public class MapLogic {
|
|||
mapManager.setCurXY(xy);
|
||||
mapManager.setMission(mission);
|
||||
mapManager.setMapInfo(newMap);
|
||||
mapManager.setTypeEight(spicelMap);
|
||||
initMapMission(mapManager);
|
||||
}
|
||||
|
||||
|
@ -740,7 +731,6 @@ public class MapLogic {
|
|||
mapManager.setMapMissionProgres(null);
|
||||
mapManager.setMission(null);
|
||||
mapManager.setMapInfo(new HashMap<>());
|
||||
mapManager.setTypeEight(new HashMap<>());
|
||||
mapManager.setWalkCells(new HashSet<>());
|
||||
mapManager.setCurXY(0);
|
||||
mapManager.setCurMapId(0);
|
||||
|
|
|
@ -33,8 +33,6 @@ public class MapManager extends MongoBase {
|
|||
|
||||
private Map<Integer, Cell> mapInfo;
|
||||
|
||||
private Map<Integer, Cell> typeEight;
|
||||
|
||||
private Set<Integer> walkCells;
|
||||
|
||||
private TemporaryItems temporaryItems;
|
||||
|
@ -98,20 +96,6 @@ public class MapManager extends MongoBase {
|
|||
this.mapInfo = mapInfo;
|
||||
}
|
||||
|
||||
public void removeAllCell() {
|
||||
// removeString("mapInfo");
|
||||
// this.mapInfo.clear();
|
||||
}
|
||||
|
||||
public Map<Integer, Cell> getTypeEight() {
|
||||
return typeEight;
|
||||
}
|
||||
|
||||
public void setTypeEight(Map<Integer, Cell> typeEight) throws Exception {
|
||||
updateString( "typeEight", typeEight);
|
||||
this.typeEight = typeEight;
|
||||
}
|
||||
|
||||
public int getTeamId() {
|
||||
return teamId;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue