Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ShadowData.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3
4public class ShadowData : EScriptable
5{
6 [Serializable]
7 public class Item
8 {
9 public string name;
10
11 public int[] raw = new int[8] { 1, 0, 0, 0, 0, 0, 0, 0 };
12
13 public int tile
14 {
15 get
16 {
17 return raw[0];
18 }
19 set
20 {
21 raw[0] = value;
22 }
23 }
24
25 public int x
26 {
27 get
28 {
29 return raw[1];
30 }
31 set
32 {
33 raw[1] = value;
34 }
35 }
36
37 public int y
38 {
39 get
40 {
41 return raw[2];
42 }
43 set
44 {
45 raw[2] = value;
46 }
47 }
48
49 public int scaleX
50 {
51 get
52 {
53 return raw[3] + 100;
54 }
55 set
56 {
57 raw[3] = value - 100;
58 }
59 }
60
61 public int scaleY
62 {
63 get
64 {
65 return raw[4] + 100;
66 }
67 set
68 {
69 raw[4] = value - 100;
70 }
71 }
72
73 public int angle
74 {
75 get
76 {
77 return raw[5];
78 }
79 set
80 {
81 raw[5] = value;
82 }
83 }
84
85 public override string ToString()
86 {
87 return "(" + tile + ") " + name;
88 }
89
90 public void Validate()
91 {
92 if (raw.Length < 8)
93 {
94 Array.Resize(ref raw, 8);
95 }
96 }
97 }
98
99 public static ShadowData Instance;
100
101 public List<Item> items;
102}
void Validate()
Definition: ShadowData.cs:90
override string ToString()
Definition: ShadowData.cs:85
List< Item > items
Definition: ShadowData.cs:101
static ShadowData Instance
Definition: ShadowData.cs:99