forked from Elem8100/MapleStoryDB2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLineListMesh.cs
38 lines (33 loc) · 949 Bytes
/
LineListMesh.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
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
namespace WzComparerR2.MapRender
{
class LineListMesh
{
public LineListMesh(Point from, Point to, Color color)
: this(from, to, color, 1)
{
}
public LineListMesh(Point from, Point to, Color color, int thickness)
: this(new Point[] { from, to }, color, thickness)
{
}
public LineListMesh(Point[] lines, Color color)
: this(lines, color, 1)
{
}
public LineListMesh(Point[] lines, Color color, int thickness)
{
this.Lines = lines;
this.Color = color;
this.Thickness = thickness;
}
public Point[] Lines { get; set; }
public int Thickness { get; set; } = 1;
public Color Color { get; set; }
}
}