Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
PointList Class Reference
Inheritance diagram for PointList:

Public Member Functions

void Deserialize ()
 

Public Attributes

int[] data
 

Private Member Functions

void OnSerializing (StreamingContext context)
 
void OnDeserialized (StreamingContext context)
 

Detailed Description

Definition at line 6 of file PointList.cs.

Member Function Documentation

◆ Deserialize()

void PointList.Deserialize ( )
inline

Definition at line 32 of file PointList.cs.

33 {
34 base.Capacity = data.Length / 2 + 8;
35 for (int i = 0; i < data.Length / 2; i++)
36 {
37 Add(new Point(data[i * 2], data[i * 2 + 1]));
38 }
39 }
list. Add(item3)
int[] data
Definition: PointList.cs:9
Definition: Point.cs:9

References Add(), and data.

Referenced by OnDeserialized().

◆ OnDeserialized()

void PointList.OnDeserialized ( StreamingContext  context)
inlineprivate

Definition at line 27 of file PointList.cs.

28 {
30 }
void Deserialize()
Definition: PointList.cs:32

References Deserialize().

◆ OnSerializing()

void PointList.OnSerializing ( StreamingContext  context)
inlineprivate

Definition at line 12 of file PointList.cs.

13 {
14 data = new int[base.Count * 2];
15 int num = 0;
16 using Enumerator enumerator = GetEnumerator();
17 while (enumerator.MoveNext())
18 {
19 Point current = enumerator.Current;
20 data[num] = current.x;
21 data[num + 1] = current.z;
22 num += 2;
23 }
24 }
int x
Definition: Point.cs:36
int z
Definition: Point.cs:39

References data, Point.x, and Point.z.

Member Data Documentation

◆ data

int [] PointList.data

Definition at line 9 of file PointList.cs.

Referenced by Deserialize(), and OnSerializing().


The documentation for this class was generated from the following file: