1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 12: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.Runtime.Serialization;
using Microsoft.Xna.Framework;
using MLEM.Extensions;
namespace MLEM.Misc {
[DataContract]
public struct RectangleF : IEquatable<RectangleF> {
public static RectangleF Empty => default;
[DataMember]
public float X;
[DataMember]
public float Y;
[DataMember]
public float Width;
[DataMember]
public float Height;
public float Left => this.X;