mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-25 01:39:23 +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.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;
|
||||
|
|
Loading…
Reference in a new issue