-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathSpriteFile.cs
More file actions
95 lines (81 loc) · 2.23 KB
/
SpriteFile.cs
File metadata and controls
95 lines (81 loc) · 2.23 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
namespace CssSprite
{
[XmlRootAttribute("SpriteFile", Namespace = "CssSprite", IsNullable = false)]
public class SpriteFile
{
/// <summary>
/// css文件路径
/// </summary>
private string _cssFileName;
/// <summary>
/// 生成的雪碧图名称
/// </summary>
private string _imageName;
/// <summary>
/// 是否是手机端
/// </summary>
private bool _isPhone;
/// <summary>
/// 手机端单位
/// </summary>
private string _phoneUnit;
/// <summary>
/// 手机端缩小比例
/// </summary>
private string _phoneFigure;
/// <summary>
/// 雪碧图文件类型
/// </summary>
private string _spriteImgFileType;
/// <summary>
/// 图片列表(路径,X,Y)
/// </summary>
private List<Sprite> _spriteList;
[XmlAttribute("CssFileName")]
public string CssFileName
{
get { return _cssFileName; }
set { _cssFileName = value; }
}
[XmlAttribute("ImageName")]
public string ImageName
{
get { return _imageName; }
set { _imageName = value; }
}
[XmlAttribute("IsPhone")]
public bool IsPhone
{
get { return _isPhone; }
set { _isPhone = value; }
}
[XmlAttribute("PhoneFigure")]
public string PhoneFigure
{
get { return _phoneFigure; }
set { _phoneFigure = value; }
}
[XmlAttribute("PhoneUnit")]
public string PhoneUnit
{
get { return _phoneUnit; }
set { _phoneUnit = value; }
}
[XmlAttribute("SpriteImgFileType")]
public string SpriteImgFileType
{
get { return _spriteImgFileType; }
set { _spriteImgFileType = value; }
}
[XmlArray("SpriteList")]
public List<Sprite> SpriteList
{
get { return _spriteList; }
set { _spriteList = value; }
}
}
}