| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace FF8
- {
- public static partial class Jsm
- {
- public static partial class Control
- {
- public sealed partial class If
- {
- private sealed class ElseSegment : Segment
- {
- public ElseSegment(Int32 from, Int32 to)
- : base(from, to)
- {
- }
- public override void ToString(StringBuilder sb)
- {
- sb.AppendLine("else");
- FormatBranch(sb, GetBodyInstructions());
- }
- public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
- {
- sw.AppendLine("else");
- FormatBranch(sw, formatterContext, services, GetBodyInstructions());
- }
- public IEnumerable<IJsmInstruction> GetBodyInstructions()
- {
- return _list;
- }
- }
- }
- }
- }
- }
|