Elin Decompiled Documentation EA 23.357 Nightly
Loading...
Searching...
No Matches
SkinDeco.cs
Go to the documentation of this file.
1using System.Runtime.Serialization;
2using Newtonsoft.Json;
3using UnityEngine;
4
5[JsonObject(MemberSerialization.OptIn)]
6public class SkinDeco
7{
9
10 [JsonProperty]
11 public int[] ints = new int[9];
12
13 [JsonProperty]
14 public string name;
15
17
18 public int id
19 {
20 get
21 {
22 return ints[0];
23 }
24 set
25 {
26 ints[0] = value;
27 }
28 }
29
30 public int x
31 {
32 get
33 {
34 return ints[1];
35 }
36 set
37 {
38 ints[1] = value;
39 }
40 }
41
42 public int y
43 {
44 get
45 {
46 return ints[2];
47 }
48 set
49 {
50 ints[2] = value;
51 }
52 }
53
54 public int sx
55 {
56 get
57 {
58 return ints[3];
59 }
60 set
61 {
62 ints[3] = value;
63 }
64 }
65
66 public int sy
67 {
68 get
69 {
70 return ints[4];
71 }
72 set
73 {
74 ints[4] = value;
75 }
76 }
77
78 public Color color
79 {
80 get
81 {
82 return IntColor.FromInt(ints[5]);
83 }
84 set
85 {
86 ints[5] = IntColor.ToInt(ref value);
87 }
88 }
89
90 public int rz
91 {
92 get
93 {
94 return ints[6];
95 }
96 set
97 {
98 ints[6] = value;
99 }
100 }
101
102 public int cat
103 {
104 get
105 {
106 return ints[7];
107 }
108 set
109 {
110 ints[7] = value;
111 }
112 }
113
114 public bool shadow
115 {
116 get
117 {
118 return bits[0];
119 }
120 set
121 {
122 bits[0] = value;
123 }
124 }
125
126 public bool reverse
127 {
128 get
129 {
130 return bits[1];
131 }
132 set
133 {
134 bits[1] = value;
135 }
136 }
137
138 public bool bottom
139 {
140 get
141 {
142 return bits[2];
143 }
144 set
145 {
146 bits[2] = value;
147 }
148 }
149
151 internal void OnSerializing(StreamingContext context)
152 {
153 ints[8] = (int)bits.Bits;
154 }
155
156 [OnDeserialized]
157 internal void _OnDeserialized(StreamingContext context)
158 {
159 bits.Bits = (uint)ints[8];
160 }
161}
static int ToInt(ref Color c)
Definition: IntColor.cs:24
static Color32 FromInt(int i)
Definition: IntColor.cs:15
BitArray32 bits
Definition: SkinDeco.cs:16
int sy
Definition: SkinDeco.cs:67
int x
Definition: SkinDeco.cs:31
string name
Definition: SkinDeco.cs:14
int rz
Definition: SkinDeco.cs:91
Color color
Definition: SkinDeco.cs:79
void _OnDeserialized(StreamingContext context)
Definition: SkinDeco.cs:157
int[] ints
Definition: SkinDeco.cs:11
SkinDecoActor actor
Definition: SkinDeco.cs:8
bool bottom
Definition: SkinDeco.cs:139
bool reverse
Definition: SkinDeco.cs:127
int y
Definition: SkinDeco.cs:43
int cat
Definition: SkinDeco.cs:103
int sx
Definition: SkinDeco.cs:55
bool shadow
Definition: SkinDeco.cs:115
void OnSerializing(StreamingContext context)
Definition: SkinDeco.cs:151
uint Bits
Definition: BitArray32.cs:6