Пример #1
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);
 }
Пример #2
0
 /// <inheritdoc />
 protected internal override void Serialize(IComponentDataWriter writer, IAssetStore assetStore)
 {
     base.Serialize(writer, assetStore);
     writer.WriteBool("Visible", Visible);
     writer.WriteString("SortingLayerName", SortingLayerName);
     writer.WriteInt("OrderInLayer", OrderInLayer);
 }
            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.WriteString("DataC", DataC);
 }