Exemplo n.º 1
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .Property(nameof(FieldObject.Model))
     .Method(nameof(FieldObjectModel.SetPosition))
     .Argument("walkmeshTriangleId", _walkmeshTriangleId)
     .Argument("x", _x)
     .Argument("y", _y)
     .Comment(nameof(SET3));
 }
Exemplo n.º 2
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .Property(nameof(FieldObject.Animation))
     .Method(nameof(FieldObjectAnimation.Play))
     .Argument("animationId", _animationId)
     .Argument("firstFrame", _firstFrame)
     .Argument("lastFrame", _lastFrame)
     .Comment(nameof(RCANIMEKEEP));
 }
Exemplo n.º 3
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .StaticType(nameof(IPartyService))
     .Method(nameof(IPartyService.ChangeParty))
     .Enum <Characters>(_character1)
     .Enum <Characters>(_character2)
     .Enum <Characters>(_character3)
     .Comment(nameof(SETPARTY));
 }
Exemplo n.º 4
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .Await()
     .Property(nameof(FieldObject.Model))
     .Method(nameof(FieldObjectModel.RotateToObject))
     .Argument("targetObject", _targetObject)
     .Argument("frameDuration", _frameDuration)
     .Comment(nameof(CTURN));
 }
Exemplo n.º 5
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .CommentLine(FieldName.Get(_fieldMapId))
     .StaticType(nameof(IFieldService))
     .Method(nameof(IFieldService.GoTo))
     .Enum(_fieldMapId)
     .Argument("walkmeshId", _walkmeshId)
     .Comment(nameof(MAPJUMPO));
 }
Exemplo n.º 6
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .StaticType(nameof(IRenderingService))
     .Method(nameof(IRenderingService.SubScreenColor))
     .Argument("r", _r)
     .Argument("g", _g)
     .Argument("b", _b)
     .Comment(nameof(DCOLSUB));
 }
Exemplo n.º 7
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .StaticType(nameof(IMusicService))
     .Method(nameof(IMusicService.ChangeMusicVolume))
     .Argument("volume", _volume)
     .Argument("flag", _flag)
     .Argument("transitionDuration", _transitionDuration)
     .Comment(nameof(MUSICVOL));
 }
Exemplo n.º 8
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .StaticType(nameof(IPartyService))
     .Method(nameof(IPartyService.ChangeCharacterState))
     .Enum <CharacterId>(_characterId)
     .Argument("isSwitchable", _isSwitchable)
     .Argument("isSelectable", _isSelectable)
     .Comment(nameof(HOLD));
 }
Exemplo n.º 9
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .Property(nameof(FieldObject.Model))
     .Method(nameof(FieldObjectInteraction.Move))
     .Argument("x", _x)
     .Argument("y", _y)
     .Argument("z", _z)
     .Argument("unknown", _unknown)
     .Comment(nameof(MOVE));
 }
Exemplo n.º 10
0
        public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
        {
            FormatHelper.FormatMonologue(sw, formatterContext.GetMessage(_messageId));

            sw.Format(formatterContext, services)
            .StaticType(nameof(IMessageService))
            .Method(nameof(IMessageService.Show))
            .Argument("channel", _channel)
            .Argument("messageId", _messageId)
            .Comment(nameof(MES));
        }
Exemplo n.º 11
0
        public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
        {
            var formatter = sw.Format(formatterContext, services);

            formatter
            .StaticType(nameof(ISoundService))
            .Method(nameof(ISoundService.PlaySound))
            .Argument("fieldSoundIndex", _fieldSoundIndex)
            .Argument("pan", _pan)
            .Argument("volume", _volume)
            .Argument("channel", _channel)
            .Comment(nameof(MusicLoad));
        }
Exemplo n.º 12
0
        public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
        {
            var formatter = sw.Format(formatterContext, services);

            //foreach (String name in MovieName.PossibleNames(_movieId))
            //    formatter.CommentLine(name);

            formatter
            .StaticType(nameof(IMovieService))
            .Method(nameof(IMovieService.PrepareToPlay))
            .Argument("movieId", _movieId)
            .Argument("flag", _flag)
            .Comment(nameof(MovieReady));
        }
Exemplo n.º 13
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .StaticType(nameof(IRenderingService))
     .Method(nameof(IRenderingService.AddScreenColor))
     .Argument("r1", _r1)
     .Argument("g1", _g1)
     .Argument("b1", _b1)
     .Argument("r2", _r2)
     .Argument("g2", _g2)
     .Argument("b2", _b2)
     .Argument("transitionDuration", _transitionDuration)
     .Comment(nameof(FCOLADD));
 }
Exemplo n.º 14
0
        public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
        {
            var formatter = sw.Format(formatterContext, services);

            if (_musicId is IConstExpression expr)
            {
                formatter.CommentLine(MusicName.Get((MusicId)expr.Int32()));
            }

            formatter
            .StaticType(nameof(IMusicService))
            .Method(nameof(IMusicService.LoadFieldMusic))
            .Argument("musicId", _musicId)
            .Comment(nameof(MUSICLOAD));
        }
Exemplo n.º 15
0
        public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
        {
            if (_messageId is IConstExpression message)
            {
                FormatHelper.FormatMonologue(sw, formatterContext.GetMessage(message.Int32()));
            }

            sw.Format(formatterContext, services)
            .StaticType(nameof(IMessageService))
            .Method(nameof(IMessageService.ShowDialog))
            .Argument("channel", _channel)
            .Argument("messageId", _messageId)
            .Argument("posX", _posX)
            .Argument("posY", _posY)
            .Comment(nameof(RAMESW));
        }
Exemplo n.º 16
0
        public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
        {
            if (_messageId is IConstExpression message)
            {
                FormatHelper.FormatAnswers(sw, formatterContext.GetMessage(message.Int32()), _firstLine, _lastLine, _beginLine, _cancelLine);
            }

            sw.Format(formatterContext, services)
            .Await()
            .StaticType(nameof(IMessageService))
            .Method(nameof(IMessageService.ShowDialog))
            .Argument("channel", _channel)
            .Argument("messageId", _messageId)
            .Argument("firstLine", _firstLine)
            .Argument("lastLine", _lastLine)
            .Argument("beginLine", _beginLine)
            .Argument("cancelLine", _cancelLine)
            .Comment(nameof(AASK));
        }
Exemplo n.º 17
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services) => sw.Format(formatterContext, services)
 .Await()
 .Property(nameof(FieldObject.Animation))
 .Method(nameof(FieldObjectAnimation.Play))
 .Argument("animationId", AnimationId)
 .Comment(nameof(Anime));
Exemplo n.º 18
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services) => sw.Format(formatterContext, services)
 .StaticType(nameof(IMovieService))
 .Method(nameof(IMovieService.Wait))
 .Comment(nameof(MOVIE));
Exemplo n.º 19
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services) => sw.Format(formatterContext, services)
 .StaticType(nameof(IRenderingService))
 .Method(nameof(IRenderingService.Wait))
 .Comment(nameof(COLSYNC));
Exemplo n.º 20
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services) => sw.Format(formatterContext, services)
 .StaticType(nameof(ISalaryService))
 .Property(nameof(ISalaryService.IsSalaryAlertEnabled))
 .Assign(false)
 .Comment(nameof(SaralyDispOff));
Exemplo n.º 21
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services) => sw.Format(formatterContext, services)
 .Property(nameof(FieldObject.Model))
 .Method(nameof(FieldObjectModel.Hide))
 .Comment(nameof(HIDE));
Exemplo n.º 22
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services) => sw.Format(formatterContext, services)
 .StaticType(nameof(IRenderingService))
 .Method(nameof(IRenderingService.AnimateBackground))
 .Argument("lastFrame", _lastFrame)
 .Argument("firstFrame", _firstFrame)
 .Comment(nameof(BGANIME));
Exemplo n.º 23
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services) => sw.Format(formatterContext, services)
 .StaticType(nameof(IGameplayService))
 .Method(nameof(IGameplayService.ResetAllData))
 .Comment(nameof(Clear));
Exemplo n.º 24
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services) => sw.Format(formatterContext, services)
 .Await()
 .Property(nameof(FieldObject.Model))
 .Method(nameof(FieldObjectModel.Rotate))
 .Argument("angle", _angle)
 .Argument("frameDuration", _frameDuration)
 .Comment(nameof(CTURNL));
Exemplo n.º 25
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services) => sw.Format(formatterContext, services)
 .Property(nameof(FieldObject.Model))
 .Method(nameof(FieldObjectModel.SetHitBox))
 .Argument("p1", _p1.ToString())
 .Argument("p2", _p2.ToString())
 .Comment(nameof(SetLine));
Exemplo n.º 26
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services) => sw.Format(formatterContext, services)
 .StaticType(nameof(IMusicService))
 .Method(nameof(IMusicService.PlayFieldMusic))
 .Comment(nameof(MusicChange));
Exemplo n.º 27
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services) => sw.Format(formatterContext, services)
 .StaticType(nameof(IGameplayService))
 .Property(nameof(IGameplayService.IsRandomBattlesEnabled))
 .Assign(false)
 .Comment(nameof(BattleOff));
Exemplo n.º 28
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services) => sw.Format(formatterContext, services)
 .Property(nameof(FieldObject.Model))
 .Property(nameof(FieldObjectInteraction.IsPushScriptActive))
 .Assign(true)
 .Comment(nameof(PushOn));
Exemplo n.º 29
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services) => sw.Format(formatterContext, services)
 .StaticType(nameof(IFieldService))
 .Method(nameof(IFieldService.FadeOn))
 .Comment(nameof(MapFadeOn));
Exemplo n.º 30
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services) => sw.Format(formatterContext, services)
 .Property(nameof(FieldObject.Model))
 .Property(nameof(FieldObjectInteraction.SoundFootsteps))
 .Assign(false)
 .Comment(nameof(FOOTSTEPOFF));