1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-29 15:58:33 +01:00

made rectanglef a datacontract

This commit is contained in:
Ellpeck 2019-12-01 22:52:55 +01:00
parent 5b89140df4
commit 4cc2881438

View file

@ -1,15 +1,21 @@
using System; using System;
using System.Runtime.Serialization;
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework;
using MLEM.Extensions; using MLEM.Extensions;
namespace MLEM.Misc { namespace MLEM.Misc {
[DataContract]
public struct RectangleF : IEquatable<RectangleF> { public struct RectangleF : IEquatable<RectangleF> {
public static RectangleF Empty => default; public static RectangleF Empty => default;
[DataMember]
public float X; public float X;
[DataMember]
public float Y; public float Y;
[DataMember]
public float Width; public float Width;
[DataMember]
public float Height; public float Height;
public float Left => this.X; public float Left => this.X;