Handler created for ArcOwnedMinesListHandler.

This commit is contained in:
2023-01-21 09:47:53 -05:00
parent 3cec1b4466
commit 36cb532b20
4 changed files with 47 additions and 21 deletions
@@ -262,9 +262,6 @@ public class ClientMessagePump implements NetMsgHandler {
case VENDORDIALOG:
VendorDialogMsg.replyDialog((VendorDialogMsg) msg, origin);
break;
case ARCOWNEDMINESLIST:
ListOwnedMines((ArcOwnedMinesListMsg) msg, origin);
break;
case ARCMINECHANGEPRODUCTION:
changeMineProduction((ArcMineChangeProductionMsg) msg, origin);
break;
@@ -1423,22 +1420,6 @@ boolean updateCity = false;
}
private static void ListOwnedMines(ArcOwnedMinesListMsg msg, ClientConnection origin) {
PlayerCharacter pc = SessionManager.getPlayerCharacter(origin);
if (pc == null)
return;
//TODO verify this against the warehouse?
if (GuildStatusController.isInnerCouncil(pc.getGuildStatus()) == false)// is this only GL?
return;
msg.setMineList(Mine.getMinesForGuild(pc.getGuild().getObjectUUID()));
Dispatch dispatch = Dispatch.borrow(pc, msg);
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
}
private static void changeMineProduction(ArcMineChangeProductionMsg msg, ClientConnection origin) {
PlayerCharacter sourcePlayer = SessionManager.getPlayerCharacter(origin);