public void execute(GameSession gameSession, byte[] bytes) { var parser = new ByteParser(bytes); if (gameSession == null) { return; } parser.Short(); var rocketType = parser.Short(); gameSession.Player.Settings.Slotbar.SelectedRocket = rocketType; }
public void execute(GameSession gameSession, byte[] bytes) { var parser = new ByteParser(bytes); if (gameSession == null) { return; } parser.Short(); var battery = parser.Short(); gameSession.Player.Settings.Slotbar.SelectedLaser = battery; }
public void execute(GameSession gameSession, byte[] bytes) { var parser = new ByteParser(bytes); var types = parser.Short(); switch (types) { case PetRequest.LAUNCH: gameSession.Player.Pet.Controller.Activate(); break; case PetRequest.DEACTIVATE: gameSession.Player.Pet.Controller.DeActivate(); break; case PetRequest.REPAIR_DESTROYED_PET: gameSession.Player.Pet.Controller.Repair(); break; } }