Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
AreaData.cs
Go to the documentation of this file.
1using System.Runtime.Serialization;
2using Newtonsoft.Json;
3
4public class AreaData : EClass
5{
6 [JsonProperty]
7 public string name;
8
9 [JsonProperty]
10 public AreaType type;
11
12 [JsonProperty]
13 public int[] ints = new int[5];
14
16
17 public int group
18 {
19 get
20 {
21 return ints[1];
22 }
23 set
24 {
25 ints[1] = value;
26 }
27 }
28
29 public int maxHeight
30 {
31 get
32 {
33 return ints[2];
34 }
35 set
36 {
37 ints[2] = value;
38 }
39 }
40
42 {
43 get
44 {
45 return ints[3].ToEnum<BaseArea.AccessType>();
46 }
47 set
48 {
49 ints[3] = (int)value;
50 }
51 }
52
53 public bool showWallItem
54 {
55 get
56 {
57 return bits[0];
58 }
59 set
60 {
61 bits[0] = value;
62 }
63 }
64
65 public bool atrium
66 {
67 get
68 {
69 return bits[1];
70 }
71 set
72 {
73 bits[1] = value;
74 }
75 }
76
77 public bool visited
78 {
79 get
80 {
81 return bits[2];
82 }
83 set
84 {
85 bits[2] = value;
86 }
87 }
88
89 [OnSerializing]
90 private void _OnSerializing(StreamingContext context)
91 {
92 ints[0] = bits.ToInt();
93 }
94
95 [OnDeserialized]
96 private void _OnDeserialized(StreamingContext context)
97 {
98 bits.SetInt(ints[0]);
99 }
100}
BitArray32 bits
Definition: AreaData.cs:15
AreaType type
Definition: AreaData.cs:10
bool showWallItem
Definition: AreaData.cs:54
void _OnSerializing(StreamingContext context)
Definition: AreaData.cs:90
BaseArea.AccessType accessType
Definition: AreaData.cs:42
int group
Definition: AreaData.cs:18
bool atrium
Definition: AreaData.cs:66
int[] ints
Definition: AreaData.cs:13
string name
Definition: AreaData.cs:7
void _OnDeserialized(StreamingContext context)
Definition: AreaData.cs:96
bool visited
Definition: AreaData.cs:78
int maxHeight
Definition: AreaData.cs:30
AccessType
Definition: BaseArea.cs:9
Definition: EClass.cs:5
void SetInt(int i)
Definition: BitArray32.cs:89
int ToInt()
Definition: BitArray32.cs:84