-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathSprite.cs
More file actions
46 lines (40 loc) · 944 Bytes
/
Sprite.cs
File metadata and controls
46 lines (40 loc) · 944 Bytes
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
39
40
41
42
43
44
45
46
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
namespace CssSprite
{
public class Sprite
{
/// <summary>
/// 图片路径
/// </summary>
private string _path;
/// <summary>
/// 距离x轴
/// </summary>
private int _locationX;
/// <summary>
/// 距离y轴
/// </summary>
private int _locationY;
[XmlAttribute("Path")]
public string Path
{
get {return _path;}
set { _path = value; }
}
[XmlAttribute("LocationX")]
public int LocationX
{
get { return _locationX; }
set { _locationX = value; }
}
[XmlAttribute("LocationY")]
public int LocationY
{
get { return _locationY; }
set { _locationY = value; }
}
}
}