forked from Elem8100/MapleStoryDB2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMeshItem.cs
32 lines (29 loc) · 830 Bytes
/
MeshItem.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
namespace WzComparerR2.MapRender
{
class MeshItem : IComparable<MeshItem>
{
public object RenderObject { get; set; }
public Vector2 Position { get; set; }
public int Z0 { get; set; }
public int Z1 { get; set; }
//附加信息
public bool FlipX { get; set; }
public Rectangle? TileRegion { get; set; }
public Vector2 TileOffset { get; set; }
public int CompareTo(MeshItem other)
{
int comp;
if ((comp = this.Z0.CompareTo(other.Z0)) != 0
|| (comp = this.Z1.CompareTo(other.Z1)) != 0)
{
return comp;
}
return 0;
}
}
}