示例#1
0
 public virtual void SaveToFile(BinaryWriter stream)
 {
     //Program.WriteLine("   * Saving {0} {1}...", this.GetType(), ID ?? "????");
     Toolkit.SaveExpectation(stream, "ENTT");
     stream.Write(ID ?? "<Null>");
     stream.Write((char)Glyph);
     BackgroundColor.SaveToFile(stream);
     ForegroundColor.SaveToFile(stream);
     stream.Write((byte)XPosition);
     stream.Write((byte)YPosition);
     stream.Write((byte)0);             //was Flow
     stream.Write(Blocking);
 }