示例#1
0
文件: Wall.cs 项目: tivtag/Fly
        public override void Serialize(ISerializationContext context)
        {
            context.WriteDefaultHeader();

            context.Write(this.Position);
            context.Write(this.Rotation);

            context.WriteObject(this.Physics.FixtureDescription);
            context.WriteObject(this.DrawStrategy);
        }
示例#2
0
        public override void Serialize(ISerializationContext context)
        {
            context.WriteDefaultHeader();

            context.Write(this.Position);
            context.Write(this.Rotation);

            context.WriteObject(this.DrawStrategy);
            this.Physics.Serialize(context);
            this.Destroyable.Serialize(context);
        }