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(CTURNR)); }
public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services) { sw.Format(formatterContext, services) .Property(nameof(FieldObject.Animation)) .Method(nameof(FieldObjectAnimation.ChangeBaseAnimation)) .Argument("animationId", _animationId) .Argument("firstFrame", _firstFrame) .Argument("lastFrame", _lastFrame) .Comment(nameof(BASEANIME)); }
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)); }
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)); }
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)); }
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)); }
public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services) { sw.Format(formatterContext, services) .StaticType(nameof(IPartyService)) .Method(nameof(IPartyService.ChangeParty)) .Enum <CharacterId>(_character1) .Enum <CharacterId>(_character2) .Enum <CharacterId>(_character3) .Comment(nameof(SETPARTY)); }
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)); }
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)); }
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)); }
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)); }
public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services) { sw.Format(formatterContext, services) .StaticType(nameof(IRenderingService)) .Method(nameof(IRenderingService.SubScreenColorTransition)) .Argument("r1", _r1) .Argument("g1", _g1) .Argument("b1", _b1) .Argument("r2", _r2) .Argument("g2", _g2) .Argument("b2", _b2) .Argument("transitionDuration", _transitionDuration) .Comment(nameof(FCOLSUB)); }
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)); }
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)); }
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)); }
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)); }