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