Exemple #1
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));
Exemple #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)
     .Comment(nameof(RANIME));
 }
Exemple #3
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .Property(nameof(FieldObject.Animation))
     .Property(nameof(FieldObjectAnimation.FPS))
     .Assign(_fps)
     .Comment(nameof(ANIMESPEED));
 }
Exemple #4
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .Property(nameof(FieldObject.Model))
     .Property(nameof(FieldObjectInteraction.MovementSpeed))
     .Assign(_speed)
     .Comment(nameof(MSPEED));
 }
Exemple #5
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .Property(nameof(FieldObject.Model))
     .Method(nameof(FieldObjectModel.Change))
     .Argument("modelId", _modelId)
     .Comment(nameof(SETMODEL));
 }
Exemple #6
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .Property(nameof(FieldObject.Model))
     .Method(nameof(FieldObjectModel.SetDirection))
     .Argument("angle256", _angle)
     .Comment(nameof(SET3));
 }
Exemple #7
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .StaticType(nameof(IPartyService))
     .Method(nameof(IPartyService.AddPartyCharacter))
     .Enum(_characterId)
     .Comment(nameof(ADDPARTY));
 }
Exemple #8
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .StaticType(nameof(IPartyService))
     .Property(nameof(IPartyService.IsPartySwitchEnabled))
     .Assign(_isPartySwitchEnabled)
     .Comment(nameof(PHSPOWER));
 }
Exemple #9
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .StaticType(nameof(IGameplayService))
     .Property(nameof(IGameplayService.IsUserControlEnabled))
     .Assign(true)
     .Comment(nameof(UCON));
 }
Exemple #10
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));
 }
Exemple #11
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)
 .Argument("firstFrame", _firstFrame)
 .Argument("lastFrame", _lastFrame)
 .Comment(nameof(CANIME));
Exemple #12
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .StaticType(nameof(ISalaryService))
     .Property(nameof(ISalaryService.IsSalaryEnabled))
     .Assign(true)
     .Comment(nameof(SARALYON));
 }
Exemple #13
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));
 }
Exemple #14
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .Property(nameof(FieldObject.Model))
     .Property(nameof(FieldObjectInteraction.IsTalkScriptActive))
     .Assign(false)
     .Comment(nameof(TALKOFF));
 }
Exemple #15
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .StaticType(nameof(IPartyService))
     .Method(nameof(IPartyService.RemovePlayableCharacter))
     .Enum(_characterId)
     .Comment(nameof(SUBMEMBER));
 }
Exemple #16
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .StaticType(nameof(IRenderingService))
     .Property(nameof(IRenderingService.BackgroundFPS))
     .Assign(_halfFps)
     .Comment(nameof(BGANIMESPEED));
 }
Exemple #17
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .StaticType(nameof(IMessageService))
     .Method(nameof(IMessageService.Close))
     .Argument("channel", _channel)
     .Comment(nameof(WINCLOSE));
 }
Exemple #18
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));
 }
Exemple #19
0
 public void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Append("(");
     _first.Format(sw, formatterContext, services);
     sw.Append(" == ");
     _last.Format(sw, formatterContext, services);
     sw.Append(")");
 }
Exemple #20
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)
     .Comment(nameof(MUSICVOL));
 }
Exemple #21
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.PrepareGoTo))
     .Enum(_fieldMapId)
     .Comment(nameof(PREMAPJUMP2));
 }
Exemple #22
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));
 }
Exemple #23
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .CommentLine(AreaName.Get(_areaId))
     .StaticType(nameof(IFieldService))
     .Method(nameof(IFieldService.BindArea))
     .Argument("areaId", _areaId)
     .Comment(nameof(SETPLACE));
 }
Exemple #24
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .CommentLine(MusicName.Get(_musicId))
     .StaticType(nameof(IMusicService))
     .Method(nameof(IMusicService.ChangeBattleMusic))
     .Enum(_musicId)
     .Comment(nameof(SETBATTLEMUSIC));
 }
Exemple #25
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .Await()
     .StaticType(nameof(IMenuService))
     .Method(nameof(IMenuService.ShowEnterNameDialog))
     .Argument("entityName", _entityName)
     .Comment(nameof(MENUNAME));
 }
Exemple #26
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));
 }
Exemple #27
0
 public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
 {
     sw.Format(formatterContext, services)
     .Await()
     .StaticType(nameof(IInteractionService))
     .Method(nameof(IInteractionService.Wait))
     .Argument("frameNumber", _frameNumber)
     .Comment(nameof(WAIT));
 }
Exemple #28
0
 private String GetMethodName(IScriptFormatterContext formatterContext)
 {
     formatterContext.GetObjectScriptNamesById(ScriptId, out _, out String methodName);
     if (Char.IsLower(methodName[0]))
     {
         methodName = Char.ToUpperInvariant(methodName[0]) + methodName.Substring(1);
     }
     return(methodName);
 }
Exemple #29
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));
 }
Exemple #30
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));
 }