Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
SocketData.cs
Go to the documentation of this file.
1using System.Runtime.Serialization;
2using Newtonsoft.Json;
3
4public class SocketData : EClass
5{
6 public enum Type
7 {
8 Socket,
9 Rune
10 }
11
12 [JsonProperty]
13 public int[] ints = new int[5];
14
16
17 public Type type
18 {
19 get
20 {
21 return ints[0].ToEnum<Type>();
22 }
23 set
24 {
25 ints[0] = (int)value;
26 }
27 }
28
29 public int idEle
30 {
31 get
32 {
33 return ints[1];
34 }
35 set
36 {
37 ints[1] = value;
38 }
39 }
40
41 public int value
42 {
43 get
44 {
45 return ints[2];
46 }
47 set
48 {
49 ints[2] = value;
50 }
51 }
52
53 [OnSerializing]
54 private void _OnSerializing(StreamingContext context)
55 {
56 ints[4] = (int)bits.Bits;
57 }
58
59 [OnDeserialized]
60 private void _OnDeserialized(StreamingContext context)
61 {
62 bits.Bits = (uint)ints[4];
63 }
64}
Definition: EClass.cs:5
void _OnSerializing(StreamingContext context)
Definition: SocketData.cs:54
Type type
Definition: SocketData.cs:18
BitArray32 bits
Definition: SocketData.cs:15
int[] ints
Definition: SocketData.cs:13
void _OnDeserialized(StreamingContext context)
Definition: SocketData.cs:60
uint Bits
Definition: BitArray32.cs:6