protected override void Serialize(IComponentDataWriter writer, IAssetStore assetStore)
        {
            base.Serialize(writer, assetStore);

            writer.WriteDouble("LinearVelocity", LinearVelocity);
            writer.WriteDouble("AngularVelocity", AngularVelocity);
        }
Пример #2
0
        protected override void Serialize(IComponentDataWriter writer, IAssetStore assetStore)
        {
            base.Serialize(writer, assetStore);

            writer.WriteDouble("Velocity", Velocity);
            writer.WriteDouble("X", X);
            writer.WriteDouble("Y", Y);
            writer.WriteDouble("Width", Width);
            writer.WriteDouble("Height", Height);
        }
Пример #3
0
 protected internal override void Serialize(IComponentDataWriter writer, IAssetStore assetStore)
 {
     base.Serialize(writer, assetStore);
     writer.WriteString("Text", Text);
     writer.WriteDouble("FontSize", FontSize.Points);
     writer.WriteColor("Color", Color);
 }
Пример #4
0
 protected internal override void Serialize(IComponentDataWriter writer, IAssetStore assetStore)
 {
     base.Serialize(writer, assetStore);
     writer.WriteVector2("Translation", Translation);
     writer.WriteDouble("Rotation", Rotation);
     writer.WriteVector2("Scale", Scale);
 }
            protected internal override void Serialize(IComponentDataWriter writer, IAssetStore assetStore)
            {
                base.Serialize(writer, assetStore);

                writer.WriteInt("IntProperty", IntProperty);
                writer.WriteDouble("DoubleProperty", DoubleProperty);
                writer.WriteString("StringProperty", StringProperty);
            }
 protected internal override void Serialize(IComponentDataWriter writer, IAssetStore assetStore)
 {
     base.Serialize(writer, assetStore);
     writer.WriteDouble("Radius", Radius);
 }