DispatchManager is now an official manager singleton.
This commit is contained in:
@@ -10,11 +10,11 @@ package engine.net.client.handlers;
|
||||
|
||||
import engine.exception.MsgSendException;
|
||||
import engine.gameManager.DbManager;
|
||||
import engine.gameManager.DispatchManager;
|
||||
import engine.gameManager.SessionManager;
|
||||
import engine.mbEnums;
|
||||
import engine.mbEnums.DispatchChannel;
|
||||
import engine.net.Dispatch;
|
||||
import engine.net.DispatchMessage;
|
||||
import engine.net.client.ClientConnection;
|
||||
import engine.net.client.msg.ClientNetMsg;
|
||||
import engine.net.client.msg.ErrorPopupMsg;
|
||||
@@ -56,7 +56,7 @@ public class RepairMsgHandler extends AbstractClientMsgHandler {
|
||||
|
||||
repairMsg.setRepairWindowAck(npc);
|
||||
dispatch = Dispatch.borrow(player, repairMsg);
|
||||
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
|
||||
DispatchManager.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
|
||||
|
||||
} else if (repairMsg.getMsgType() == 0) { //Request RepairObject
|
||||
|
||||
@@ -98,7 +98,7 @@ public class RepairMsgHandler extends AbstractClientMsgHandler {
|
||||
toRepair.setCombat_health_current(max);
|
||||
repairMsg.setupRepairAck(max - dur);
|
||||
dispatch = Dispatch.borrow(player, repairMsg);
|
||||
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
|
||||
DispatchManager.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ public class RepairMsgHandler extends AbstractClientMsgHandler {
|
||||
ugm.configure();
|
||||
|
||||
dispatch = Dispatch.borrow(player, ugm);
|
||||
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
|
||||
DispatchManager.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
|
||||
|
||||
//update durability to database
|
||||
|
||||
@@ -148,7 +148,7 @@ public class RepairMsgHandler extends AbstractClientMsgHandler {
|
||||
|
||||
repairMsg.setupRepairAck(max - dur);
|
||||
dispatch = Dispatch.borrow(player, repairMsg);
|
||||
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
|
||||
DispatchManager.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user