-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathStructs.cs
72 lines (62 loc) · 1.93 KB
/
Structs.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
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
using System;
using System.Collections.Generic;
namespace GODump
{
[Serializable]
public class AnimationInfo
{
public int numFrames;
public float fps;
public string wrapMode;
public int loopStart;
public string collectionName;
public AnimationInfo(int numFrames, float fps, tk2dSpriteAnimationClip.WrapMode wrapMode, int loopStart, string collectionName)
{
this.numFrames = numFrames;
this.fps = fps;
this.wrapMode = wrapMode.ToString();
this.loopStart = loopStart;
this.collectionName = collectionName;
}
}
[Serializable]
public class SpriteInfo
{
public List<int> sid;
public List<int> sx;
public List<int> sy;
public List<int> sxr;
public List<int> syr;
public List<int> swidth;
public List<int> sheight;
public List<string> scollectionname;
public List<string> spath;
public List<bool> sfilpped;
public SpriteInfo()
{
sid = new List<int>();
sx = new List<int>();
sy = new List<int>();
sxr = new List<int>();
syr = new List<int>();
swidth = new List<int>();
sheight = new List<int>();
scollectionname = new List<string>();
spath = new List<string>();
sfilpped = new List<bool>();
}
public void Add(int _sid, int _sx, int _sy, int _sxr, int _syr, int _swidth, int _sheight, string _scollectionname, string _spath, bool _sfilpped)
{
sid.Add(_sid);
sx.Add(_sx);
sy.Add(_sy);
sxr.Add(_sxr);
syr.Add(_syr);
swidth.Add(_swidth);
sheight.Add(_sheight);
scollectionname.Add(_scollectionname);
spath.Add(_spath);
sfilpped.Add(_sfilpped);
}
}
}