Пример #1
0
 @Override
 public void execute(PlayerManager playerManager, Message_1019_1 message) throws Exception {
   for (CDTimeArrayItem item : message.getCDTimeArray().list()) {
     playerManager.getShilianManager().getCdTimeMap().put(item.getType(), item.getTime());
   }
   playerManager.getShilianManager().checkFight();
 }
Пример #2
0
 @Override
 public void execute(PlayerManager playerManager, Message_1003_14 message) throws Exception {
   for (UserDataAccumulateArrayItem item : message.getUserDataAccumulateArray().list()) {
     String key = DummyUtils.getCompositeKey(item.getType(), item.getParam());
     DataAccumulateData dataAccumulateData = new DataAccumulateData();
     dataAccumulateData.setType(item.getType());
     dataAccumulateData.setParam(item.getParam());
     dataAccumulateData.setValue(item.getValue());
     playerManager.getDataAccumulateManager().getDataAccumulateMap().put(key, dataAccumulateData);
   }
 }