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:
parent
5b89140df4
commit
4cc2881438
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue