Elin Decompiled Documentation EA 23.197 Nightly Patch 1
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 public bool isFree
54 {
55 get
56 {
57 return bits[0];
58 }
59 set
60 {
61 bits[0] = value;
62 }
63 }
64
65 [OnSerializing]
66 private void _OnSerializing(StreamingContext context)
67 {
68 ints[4] = (int)bits.Bits;
69 }
70
71 [OnDeserialized]
72 private void _OnDeserialized(StreamingContext context)
73 {
74 bits.Bits = (uint)ints[4];
75 }
76}
Definition: EClass.cs:5
bool isFree
Definition: SocketData.cs:54
void _OnSerializing(StreamingContext context)
Definition: SocketData.cs:66
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:72
uint Bits
Definition: BitArray32.cs:6