public override void Serialize(BinaryWriter bw) { MacroSerializer.WriteMacroAction(bw, this.Params[0]); MacroSerializer.WriteMacroAction(bw, this.Params[1]); MacroSerializer.WriteMacroAction(bw, this.Params[2]); MacroSerializer.WriteMacroAction(bw, this.Params[3]); MacroSerializer.WriteMacroAction(bw, this.Params[4]); }
public override void Serialize(BinaryWriter bw) { bw.Write(this.If.Count); foreach (MacroAction ma in this.If) { MacroSerializer.WriteMacroAction(bw, ma); } bw.Write(this.Then.Count); foreach (MacroAction ma in this.Then) { MacroSerializer.WriteMacroAction(bw, ma); } bw.Write(this.Else.Count); foreach (MacroAction ma in this.Else) { MacroSerializer.WriteMacroAction(bw, ma); } }
public override void Serialize(BinaryWriter bw) => MacroSerializer.WriteMacroAction(bw, this.Params[0]);