コード例 #1
0
ファイル: SetParty.cs プロジェクト: Sebanisu/OpenVIII
 public override IAwaitable TestExecute(IServices services)
 {
     ServiceId.Party[services].ChangeParty(
         (Characters)_character1.Int32(services),
         (Characters)_character1.Int32(services),
         (Characters)_character1.Int32(services));
     return(DummyAwaitable.Instance);
 }
コード例 #2
0
        public override IAwaitable TestExecute(IServices services)
        {
            Characters characterId = (Characters)_characterId.Int32(services);

            ServiceId.Party[services].RemovePartyCharacter(characterId);
            return(DummyAwaitable.Instance);
        }
コード例 #3
0
        public override IAwaitable TestExecute(IServices services)
        {
            Int32 value = _value.Int32(services);

            ServiceId.Interaction[services][_index] = value;
            return(DummyAwaitable.Instance);
        }
コード例 #4
0
        public override IAwaitable TestExecute(IServices services)
        {
            FieldObject currentObject = ServiceId.Field[services].Engine.CurrentObject;

            currentObject.Model.SetDirection(Degrees.FromAngle256(_angle.Int32(services)));
            return(DummyAwaitable.Instance);
        }
コード例 #5
0
ファイル: ASK.cs プロジェクト: stantoxt/OpenVIII
 public override IAwaitable TestExecute(IServices services) => ServiceId.Message[services].ShowQuestion(
     _channel.Int32(services),
     _messageId.Int32(services),
     _firstLine.Int32(services),
     _lastLine.Int32(services),
     _beginLine.Int32(services),
     _cancelLine.Int32(services));
コード例 #6
0
ファイル: MSPEED.cs プロジェクト: rustyworks/OpenVIII
        public override IAwaitable TestExecute(IServices services)
        {
            FieldObject currentObject = ServiceId.Field[services].Engine.CurrentObject;

            currentObject.Interaction.MovementSpeed = _speed.Int32(services);
            return(DummyAwaitable.Instance);
        }
コード例 #7
0
ファイル: HOLD.cs プロジェクト: mbimbij/OpenVIII
        public override IAwaitable TestExecute(IServices services)
        {
            CharacterId characterId = (CharacterId)_characterId.Int32(services);

            ServiceId.Party[services].ChangeCharacterState(characterId, _isSwitchable, _isSelectable);
            return(DummyAwaitable.Instance);
        }
コード例 #8
0
ファイル: BGANIMESPEED.cs プロジェクト: Albeoris/OpenVIII
        public override IAwaitable TestExecute(IServices services)
        {
            Int32 fps = _halfFps.Int32(services) * 2;

            ServiceId.Rendering[services].BackgroundFPS = fps;
            return(DummyAwaitable.Instance);
        }
コード例 #9
0
ファイル: MUSICVOL.cs プロジェクト: stantoxt/OpenVIII
 public override IAwaitable TestExecute(IServices services)
 {
     ServiceId.Music[services].ChangeMusicVolume(
         _volume.Int32(services),
         _flag.Boolean(services));
     return(DummyAwaitable.Instance);
 }
コード例 #10
0
ファイル: BGANIME.cs プロジェクト: rustyworks/OpenVIII
        public override IAwaitable TestExecute(IServices services)
        {
            Int32 firstFrame = _lastFrame.Int32(services);
            Int32 lastFrame  = _firstFrame.Int32(services);

            ServiceId.Rendering[services].AnimateBackground(firstFrame, lastFrame);
            return(DummyAwaitable.Instance);
        }
コード例 #11
0
 public override IAwaitable TestExecute(IServices services)
 {
     return(ServiceId.Message[services].ShowDialog(
                _channel.Int32(services),
                _messageId.Int32(services),
                _posX.Int32(services),
                _posY.Int32(services)));
 }
コード例 #12
0
ファイル: DColSub.cs プロジェクト: Sebanisu/OpenVIII
 public override IAwaitable TestExecute(IServices services)
 {
     ServiceId.Rendering[services].SubScreenColor(
         new Color(
             _r.Int32(services),
             _g.Int32(services),
             _b.Int32(services)));
     return(DummyAwaitable.Instance);
 }
コード例 #13
0
        public override IAwaitable TestExecute(IServices services)
        {
            ServiceId.Sound[services].PlaySound(_fieldSoundIndex,
                                                _pan.Int32(services),
                                                _volume.Int32(services),
                                                _channel.Int32(services));

            return(DummyAwaitable.Instance);
        }
コード例 #14
0
 public override IAwaitable TestExecute(IServices services) => ServiceId.Message[services].ShowQuestion(
     _channel.Int32(services),
     _messageId.Int32(services),
     _firstLine.Int32(services),
     _lastLine.Int32(services),
     _beginLine.Int32(services),
     _cancelLine.Int32(services),
     _pos.X,    //do we need to use the services code for these? they don't do it in AMES
     _pos.Y);
コード例 #15
0
ファイル: CTurn.cs プロジェクト: Sebanisu/OpenVIII
        public override IAwaitable TestExecute(IServices services)
        {
            var currentObject = ServiceId.Field[services].Engine.CurrentObject;

            var frameDuration = _frameDuration.Int32(services);

            currentObject.Model.RotateToObject(_targetObject, frameDuration);

            return(DummyAwaitable.Instance);
        }
コード例 #16
0
ファイル: CTURNL.cs プロジェクト: stantoxt/OpenVIII
        public override IAwaitable TestExecute(IServices services)
        {
            var currentObject = ServiceId.Field[services].Engine.CurrentObject;

            var degrees       = Degrees.FromAngle256(_angle.Int32(services));
            var frameDuration = _frameDuration.Int32(services);

            currentObject.Model.Rotate(-degrees, frameDuration);

            return(DummyAwaitable.Instance);
        }
コード例 #17
0
ファイル: PCTURN.cs プロジェクト: hollow87/OpenVIII
        public override IAwaitable TestExecute(IServices services)
        {
            FieldObject currentObject = ServiceId.Field[services].Engine.CurrentObject;

            Int32 unknown       = _unknown.Int32(services);
            Int32 frameDuration = _frameDuration.Int32(services);

            currentObject.Model.RotateToPlayer(unknown, frameDuration);

            return(DummyAwaitable.Instance);
        }
コード例 #18
0
ファイル: MOVE.cs プロジェクト: poooooooooke/OpenVIII
        public override IAwaitable TestExecute(IServices services)
        {
            FieldObject currentObject = ServiceId.Field[services].Engine.CurrentObject;

            Coords3D coords = new Coords3D(
                _x.Int32(services),
                _y.Int32(services),
                _z.Int32(services));
            Int32 unknown = _unknown.Int32(services);

            currentObject.Interaction.Move(coords, unknown);

            return(DummyAwaitable.Instance);
        }
コード例 #19
0
        public override IAwaitable TestExecute(IServices services)
        {
            ServiceId.Rendering[services].SubScreenColorTransition(
                new RGBColor(
                    _r1.Int32(services),
                    _g1.Int32(services),
                    _b1.Int32(services)),
                new RGBColor(
                    _r2.Int32(services),
                    _g2.Int32(services),
                    _b2.Int32(services)),
                _transitionDuration.Int32(services));

            return(DummyAwaitable.Instance);
        }
コード例 #20
0
ファイル: MUSICLOAD.cs プロジェクト: rustyworks/OpenVIII
 public override IAwaitable TestExecute(IServices services)
 {
     ServiceId.Music[services].LoadFieldMusic((MusicId)_musicId.Int32(services));
     return(DummyAwaitable.Instance);
 }
コード例 #21
0
        public override IAwaitable TestExecute(IServices services)
        {
            Int32 frameNumber = _frameNumber.Int32(services);

            return(ServiceId.Interaction[services].Wait(frameNumber));
        }
コード例 #22
0
        public override IAwaitable TestExecute(IServices services)
        {
            NamedEntity targetEntity = (NamedEntity)_entityName.Int32(services);

            return(ServiceId.Menu[services].ShowEnterNameDialog(targetEntity));
        }