Exemple #1
0
 public void Write(AssetsWriter writer)
 {
     Texture.Write(writer);
     AlphaTexture.Write(writer);
     writer.WriteArrayOf(SubMeshes, (o, w) => o.Write(w));
     writer.WriteArray(IndexBuffer);
     writer.AlignTo(4);
     VertexData.Write(writer);
     writer.WriteArrayOf(BindPose, (o, w) => w.Write(o));
     TextureRect.Write(writer);
     TextureRectOffset.Write(writer);
     AtlasRectOffset.Write(writer);
     writer.Write(SettingsRaw);
     UVTransform.Write(writer);
     writer.Write(DownscaleMultiplier);
 }
Exemple #2
0
 protected override void WriteBase(AssetsWriter writer)
 {
     base.WriteBase(writer);
     writer.Write(Name);
     Rect.Write(writer);
     Offset.Write(writer);
     Border.Write(writer);
     writer.Write(PixelsToUnits);
     Pivot.Write(writer);
     writer.Write(Extrude);
     writer.Write(IsPolygon);
     writer.AlignTo(4);
     writer.Write(RenderDataKey.First);
     writer.Write(RenderDataKey.Second);
     writer.WriteArrayOf(AtlasTags, (o, w) => w.Write(o));
     SpriteAtlas.Write(writer);
     RenderData.Write(writer);
     writer.WriteArrayOf(PhysicsShape, (o, w) => w.WriteArrayOf(o, (o2, w2) => o2.Write(w2)));
     writer.WriteArrayOf(Bones, (o, w) => o.Write(w));
 }