Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
SourcePref Class Reference
Inheritance diagram for SourcePref:
EClass SourcePrefCard SourcePrefTile

Public Member Functions

void OnAfterDeserialize ()
 
void OnBeforeSerialize ()
 
void Validate ()
 

Public Attributes

int[] ints = new int[25]
 
BitArray32 _bits1
 

Properties

int test [get]
 
PrefFlag flags [get, set]
 
int shadow [get, set]
 
float height [get, set]
 
int liquidMod [get, set]
 
int liquidModMax [get, set]
 
float hatY [get, set]
 
float stackX [get, set]
 
float x [get, set]
 
float y [get, set]
 
float z [get, set]
 
int pivotX [get, set]
 
int pivotY [get, set]
 
int shadowX [get, set]
 
int shadowY [get, set]
 
int shadowRX [get, set]
 
int shadowRY [get, set]
 
int shadowBX [get, set]
 
int shadowBY [get, set]
 
int shadowBRX [get, set]
 
int shadowBRY [get, set]
 
int equipX [get, set]
 
int equipY [get, set]
 
int scaleIcon [get, set]
 
bool bypassShadow [get, set]
 
bool UsePref [get]
 
bool Float [get]
 
bool Surface [get]
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from EClass
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 6 of file SourcePref.cs.

Member Function Documentation

◆ OnAfterDeserialize()

void SourcePref.OnAfterDeserialize ( )
inline

Definition at line 316 of file SourcePref.cs.

317 {
318 if (ints.Length >= 25)
319 {
320 _bits1.SetInt(ints[22]);
321 }
322 else
323 {
324 Validate();
325 }
326 }
int[] ints
Definition: SourcePref.cs:9
BitArray32 _bits1
Definition: SourcePref.cs:11
void Validate()
Definition: SourcePref.cs:333
void SetInt(int i)
Definition: BitArray32.cs:89

References _bits1, ints, BitArray32.SetInt(), and Validate().

◆ OnBeforeSerialize()

void SourcePref.OnBeforeSerialize ( )
inline

Definition at line 328 of file SourcePref.cs.

329 {
330 ints[22] = _bits1.ToInt();
331 }
int ToInt()
Definition: BitArray32.cs:84

References _bits1, ints, and BitArray32.ToInt().

◆ Validate()

void SourcePref.Validate ( )
inline

Definition at line 333 of file SourcePref.cs.

334 {
335 if (ints.Length < 25)
336 {
337 Array.Resize(ref ints, 25);
338 }
339 }

References ints.

Referenced by OnAfterDeserialize(), RenderRow.SetImage(), SourceBlock.ValidatePref(), SourceChara.ValidatePref(), SourceFloor.ValidatePref(), and SourceObj.ValidatePref().

Member Data Documentation

◆ _bits1

BitArray32 SourcePref._bits1

Definition at line 11 of file SourcePref.cs.

Referenced by OnAfterDeserialize(), and OnBeforeSerialize().

◆ ints

int [] SourcePref.ints = new int[25]

Definition at line 9 of file SourcePref.cs.

Referenced by OnAfterDeserialize(), OnBeforeSerialize(), and Validate().

Property Documentation

◆ bypassShadow

bool SourcePref.bypassShadow
getset

Definition at line 298 of file SourcePref.cs.

299 {
300 get
301 {
302 return _bits1[0];
303 }
304 set
305 {
306 _bits1[0] = value;
307 }
308 }

Referenced by BaseTileMap.DrawTile().

◆ equipX

int SourcePref.equipX
getset

Definition at line 262 of file SourcePref.cs.

263 {
264 get
265 {
266 return ints[18];
267 }
268 set
269 {
270 ints[18] = value;
271 }
272 }

Referenced by CharaRenderer.DrawHat(), CharaRenderer.DrawHeld(), and CharaActorPCC.OnRender().

◆ equipY

int SourcePref.equipY
getset

Definition at line 274 of file SourcePref.cs.

275 {
276 get
277 {
278 return ints[19];
279 }
280 set
281 {
282 ints[19] = value;
283 }
284 }

Referenced by CharaRenderer.DrawHat(), CharaRenderer.DrawHeld(), and CharaActorPCC.OnRender().

◆ flags

PrefFlag SourcePref.flags
getset

Definition at line 22 of file SourcePref.cs.

23 {
24 get
25 {
26 return ints[1].ToEnum<PrefFlag>();
27 }
28 set
29 {
30 ints[1] = (int)value;
31 }
32 }
PrefFlag
Definition: PrefFlag.cs:5

Referenced by SourcePrefInspector.ToggleUsePref().

◆ Float

bool SourcePref.Float
get

◆ hatY

float SourcePref.hatY
getset

Definition at line 82 of file SourcePref.cs.

83 {
84 get
85 {
86 return (float)ints[23] * 0.01f;
87 }
88 set
89 {
90 ints[23] = (int)(value * 100f);
91 }
92 }

Referenced by CharaRenderer.Draw(), and CharaRenderer.DrawHat().

◆ height

float SourcePref.height
getset

Definition at line 46 of file SourcePref.cs.

47 {
48 get
49 {
50 return (float)ints[3] * 0.01f;
51 }
52 set
53 {
54 ints[3] = (int)(value * 100f);
55 }
56 }

Referenced by BaseTileMap.DrawTile(), TileMapElona.DrawTile(), Cell.GetSurfaceHeight(), BaseTileMap.GetThingPosition(), and CoreDebug.UpdateInput().

◆ liquidMod

int SourcePref.liquidMod
getset

Definition at line 58 of file SourcePref.cs.

59 {
60 get
61 {
62 return ints[16];
63 }
64 set
65 {
66 ints[16] = value;
67 }
68 }

Referenced by BaseTileMap.DrawTile().

◆ liquidModMax

int SourcePref.liquidModMax
getset

Definition at line 70 of file SourcePref.cs.

71 {
72 get
73 {
74 return ints[21];
75 }
76 set
77 {
78 ints[21] = value;
79 }
80 }

Referenced by BaseTileMap.DrawTile().

◆ pivotX

int SourcePref.pivotX
getset

Definition at line 142 of file SourcePref.cs.

143 {
144 get
145 {
146 return ints[6];
147 }
148 set
149 {
150 ints[6] = value;
151 }
152 }

Referenced by RenderRow.SetImage().

◆ pivotY

int SourcePref.pivotY
getset

Definition at line 154 of file SourcePref.cs.

155 {
156 get
157 {
158 return ints[7];
159 }
160 set
161 {
162 ints[7] = value;
163 }
164 }

Referenced by RenderRow.SetImage().

◆ scaleIcon

int SourcePref.scaleIcon
getset

Definition at line 286 of file SourcePref.cs.

287 {
288 get
289 {
290 return ints[20];
291 }
292 set
293 {
294 ints[20] = value;
295 }
296 }

Referenced by RenderRow.SetImage().

◆ shadow

int SourcePref.shadow
getset

Definition at line 34 of file SourcePref.cs.

35 {
36 get
37 {
38 return ints[0];
39 }
40 set
41 {
42 ints[0] = value;
43 }
44 }

Referenced by CardRenderer.Draw(), BaseTileMap.DrawTile(), TileMapElona.DrawTile(), and GrowSystem.OnRenderTileMap().

◆ shadowBRX

int SourcePref.shadowBRX
getset

Definition at line 238 of file SourcePref.cs.

239 {
240 get
241 {
242 return ints[14];
243 }
244 set
245 {
246 ints[14] = value;
247 }
248 }

Referenced by MeshPass.AddShadow().

◆ shadowBRY

int SourcePref.shadowBRY
getset

Definition at line 250 of file SourcePref.cs.

251 {
252 get
253 {
254 return ints[15];
255 }
256 set
257 {
258 ints[15] = value;
259 }
260 }

Referenced by MeshPass.AddShadow().

◆ shadowBX

int SourcePref.shadowBX
getset

Definition at line 214 of file SourcePref.cs.

215 {
216 get
217 {
218 return ints[12];
219 }
220 set
221 {
222 ints[12] = value;
223 }
224 }

Referenced by MeshPass.AddShadow().

◆ shadowBY

int SourcePref.shadowBY
getset

Definition at line 226 of file SourcePref.cs.

227 {
228 get
229 {
230 return ints[13];
231 }
232 set
233 {
234 ints[13] = value;
235 }
236 }

Referenced by MeshPass.AddShadow().

◆ shadowRX

int SourcePref.shadowRX
getset

Definition at line 190 of file SourcePref.cs.

191 {
192 get
193 {
194 return ints[10];
195 }
196 set
197 {
198 ints[10] = value;
199 }
200 }

◆ shadowRY

int SourcePref.shadowRY
getset

Definition at line 202 of file SourcePref.cs.

203 {
204 get
205 {
206 return ints[11];
207 }
208 set
209 {
210 ints[11] = value;
211 }
212 }

◆ shadowX

int SourcePref.shadowX
getset

Definition at line 166 of file SourcePref.cs.

167 {
168 get
169 {
170 return ints[8];
171 }
172 set
173 {
174 ints[8] = value;
175 }
176 }

Referenced by MeshPass.AddShadow().

◆ shadowY

int SourcePref.shadowY
getset

Definition at line 178 of file SourcePref.cs.

179 {
180 get
181 {
182 return ints[9];
183 }
184 set
185 {
186 ints[9] = value;
187 }
188 }

Referenced by MeshPass.AddShadow().

◆ stackX

float SourcePref.stackX
getset

Definition at line 94 of file SourcePref.cs.

95 {
96 get
97 {
98 return (float)ints[17] * 0.01f;
99 }
100 set
101 {
102 ints[17] = (int)(value * 100f);
103 }
104 }

◆ Surface

bool SourcePref.Surface
get

Definition at line 314 of file SourcePref.cs.

Referenced by Chara._Move(), and Cell.GetSurfaceHeight().

◆ test

int SourcePref.test
get

Definition at line 13 of file SourcePref.cs.

14 {
15 get
16 {
17 Validate();
18 return ints[0];
19 }
20 }

◆ UsePref

bool SourcePref.UsePref
get

Definition at line 310 of file SourcePref.cs.

Referenced by CardRow.GetPref().

◆ x

float SourcePref.x
getset

Definition at line 106 of file SourcePref.cs.

107 {
108 get
109 {
110 return (float)ints[4] * 0.01f;
111 }
112 set
113 {
114 ints[4] = (int)(value * 100f);
115 }
116 }

Referenced by CharaRenderer.DrawHeld().

◆ y

float SourcePref.y
getset

Definition at line 118 of file SourcePref.cs.

119 {
120 get
121 {
122 return (float)ints[5] * 0.01f;
123 }
124 set
125 {
126 ints[5] = (int)(value * 100f);
127 }
128 }

Referenced by CardRenderer.Draw(), BaseTileMap.DrawTile(), and GrowSystem.OnRenderTileMap().

◆ z

float SourcePref.z
getset

Definition at line 130 of file SourcePref.cs.

131 {
132 get
133 {
134 return (float)ints[2] * 0.01f;
135 }
136 set
137 {
138 ints[2] = (int)(value * 100f);
139 }
140 }

Referenced by BaseTileMap.DrawTile(), BaseTileMap.GetThingPosition(), and GrowSystem.OnRenderTileMap().


The documentation for this class was generated from the following file: