Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
AreaData.cs
Go to the documentation of this file.
1
using
System.Runtime.Serialization;
2
using
Newtonsoft.Json;
3
4
public
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
15
public
BitArray32
bits
;
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
41
public
BaseArea.AccessType
accessType
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
}
AreaData
Definition:
AreaData.cs:5
AreaData.bits
BitArray32 bits
Definition:
AreaData.cs:15
AreaData.type
AreaType type
Definition:
AreaData.cs:10
AreaData.showWallItem
bool showWallItem
Definition:
AreaData.cs:54
AreaData._OnSerializing
void _OnSerializing(StreamingContext context)
Definition:
AreaData.cs:90
AreaData.accessType
BaseArea.AccessType accessType
Definition:
AreaData.cs:42
AreaData.group
int group
Definition:
AreaData.cs:18
AreaData.atrium
bool atrium
Definition:
AreaData.cs:66
AreaData.ints
int[] ints
Definition:
AreaData.cs:13
AreaData.name
string name
Definition:
AreaData.cs:7
AreaData._OnDeserialized
void _OnDeserialized(StreamingContext context)
Definition:
AreaData.cs:96
AreaData.visited
bool visited
Definition:
AreaData.cs:78
AreaData.maxHeight
int maxHeight
Definition:
AreaData.cs:30
AreaType
Definition:
AreaType.cs:5
BaseArea
Definition:
BaseArea.cs:7
BaseArea.AccessType
AccessType
Definition:
BaseArea.cs:9
EClass
Definition:
EClass.cs:5
BitArray32
Definition:
BitArray32.cs:5
BitArray32.SetInt
void SetInt(int i)
Definition:
BitArray32.cs:89
BitArray32.ToInt
int ToInt()
Definition:
BitArray32.cs:84
Elin
AreaData.cs
Generated by
1.9.6