forked from MagicBane/Server
DispatchManager is now an official manager singleton.
This commit is contained in:
@@ -11,10 +11,10 @@ package engine.objects;
|
||||
|
||||
import engine.gameManager.ChatManager;
|
||||
import engine.gameManager.DbManager;
|
||||
import engine.gameManager.DispatchManager;
|
||||
import engine.loot.WorkOrder;
|
||||
import engine.mbEnums;
|
||||
import engine.net.Dispatch;
|
||||
import engine.net.DispatchMessage;
|
||||
import engine.net.client.ClientConnection;
|
||||
import engine.net.client.msg.*;
|
||||
import engine.server.MBServerStatics;
|
||||
@@ -111,7 +111,7 @@ public class Warehouse {
|
||||
vrm.setWarehouseBuilding(warehouseBuilding);
|
||||
vrm.configure();
|
||||
dispatch = Dispatch.borrow(playerCharacter, vrm);
|
||||
DispatchMessage.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
|
||||
DispatchManager.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
|
||||
}
|
||||
|
||||
public static void warehouseWithdraw(MerchantMsg msg, PlayerCharacter playerCharacter, NPC npc) {
|
||||
@@ -157,7 +157,7 @@ public class Warehouse {
|
||||
vrm.setWarehouseBuilding(warehouseBuilding);
|
||||
vrm.configure();
|
||||
dispatch = Dispatch.borrow(playerCharacter, vrm);
|
||||
DispatchMessage.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
|
||||
DispatchManager.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
|
||||
}
|
||||
|
||||
public static void warehouseLock(MerchantMsg msg, PlayerCharacter playerCharacter, NPC npc) {
|
||||
@@ -198,7 +198,7 @@ public class Warehouse {
|
||||
vrm.setWarehouseBuilding(warehouseBuilding);
|
||||
vrm.configure();
|
||||
dispatch = Dispatch.borrow(playerCharacter, vrm);
|
||||
DispatchMessage.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
|
||||
DispatchManager.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
|
||||
} else
|
||||
warehouse.locked.add(resourceType);
|
||||
|
||||
@@ -215,7 +215,7 @@ public class Warehouse {
|
||||
vrm.setWarehouseBuilding(warehouseBuilding);
|
||||
vrm.configure();
|
||||
dispatch = Dispatch.borrow(playerCharacter, vrm);
|
||||
DispatchMessage.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
|
||||
DispatchManager.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
|
||||
} else
|
||||
warehouse.locked.remove(resourceType);
|
||||
|
||||
@@ -279,7 +279,7 @@ public class Warehouse {
|
||||
UpdateGoldMsg ugm = new UpdateGoldMsg(playerCharacter);
|
||||
ugm.configure();
|
||||
Dispatch dispatch = Dispatch.borrow(playerCharacter, ugm);
|
||||
DispatchMessage.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
|
||||
DispatchManager.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
|
||||
|
||||
itemMan.updateInventory();
|
||||
|
||||
@@ -464,7 +464,7 @@ public class Warehouse {
|
||||
UpdateGoldMsg ugm = new UpdateGoldMsg(playerCharacter);
|
||||
ugm.configure();
|
||||
Dispatch dispatch = Dispatch.borrow(playerCharacter, ugm);
|
||||
DispatchMessage.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
|
||||
DispatchManager.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
|
||||
|
||||
itemMan.updateInventory();
|
||||
} else {
|
||||
@@ -537,7 +537,7 @@ public class Warehouse {
|
||||
UpdateGoldMsg ugm = new UpdateGoldMsg(playerCharacter);
|
||||
ugm.configure();
|
||||
Dispatch dispatch = Dispatch.borrow(playerCharacter, ugm);
|
||||
DispatchMessage.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
|
||||
DispatchManager.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
|
||||
|
||||
itemMan.updateInventory();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user