public void execute(GameSession gameSession, byte[] bytes) { var read = new DroneFormationChangeRequest(); read.readCommand(bytes); var player = gameSession.Player; player.DroneManager.ChangeDroneFormation(read.selectedFormationId); }
public void execute(GameSession gameSession, IByteBuffer buffer) { var formationId = 0; if (!gameSession.Player.UsingNewClient) { var cmd = new DroneFormationChangeRequest(); cmd.readCommand(buffer); formationId = cmd.selectedFormationId; } gameSession.Player.Controller.Miscs.UseItem(Slotbar.Items.FormationIds[formationId]); }