地图修改
parent
161bc6fa52
commit
19069e4586
|
@ -669,6 +669,7 @@ public class MapLogic {
|
|||
mapManager.setTriggerXY(triggerXY);
|
||||
mapManager.addWalkCells(new HashSet<>(cells));
|
||||
mapManager.setCurXY(curXY);
|
||||
getMap(user).updateLocation(user,curXY);
|
||||
mapManager.updateEndlessLocation(curXY);
|
||||
MapInfoProto.MapUpdateResponse.Builder mapUpdateResponse = MapInfoProto.MapUpdateResponse.newBuilder();
|
||||
mapUpdateResponse.setLeftTime(getLeftTime(user, true));
|
||||
|
|
|
@ -558,4 +558,6 @@ public abstract class AbstractMap implements IMap {
|
|||
|
||||
public abstract void autoExitMap(User user);
|
||||
|
||||
|
||||
public void updateLocation(User user,int xy){};
|
||||
}
|
||||
|
|
|
@ -481,4 +481,9 @@ public class EndlessMap extends AbstractMap{
|
|||
return GlobalDataManaager.getEndleeMapIdByLevel();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateLocation(User user,int xy) {
|
||||
user.getMapManager().updateEndlessLocation(xy);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -683,4 +683,9 @@ public class TowerMap extends AbstractMap {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateLocation(User user, int xy) {
|
||||
user.getMapManager().updateTrialCurXY(xy);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue