Ejemplo n.º 1
0
 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]);
 }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
 public override void Serialize(BinaryWriter bw) => MacroSerializer.WriteMacroAction(bw, this.Params[0]);