示例#1
0
        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;
        }
示例#3
0
        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;
            }
        }