Empeld
Empeld plugin documentation.
pluginbase.Objects.Syncable.Watchers.ArraySync< T > Class Template Reference

Syncable class that can synchronize other syncables that it can contain More...

Inheritance diagram for pluginbase.Objects.Syncable.Watchers.ArraySync< T >:

Public Member Functions

 ArraySync ()
 Initializes a new instance of the class. More...
 
 ArraySync (int len)
 Initializes a new instance of the array class. More...
 

Public Attributes

T this[] overflow = null
 Gets or sets the array with the specified index. More...
 

Properties

int Length [get]
 Gets the length of the array More...
 

Events

ArrItem Action< int > ItemChanged
 Occurs when item changed, either by call or via network sync More...
 
Action< int, T[]> SizeChanged
 Occurs when size changed. More...
 

Detailed Description

Syncable class that can synchronize other syncables that it can contain

Type Constraints
T :class 
T :INetSyncable 

Constructor & Destructor Documentation

◆ ArraySync() [1/2]

Initializes a new instance of the class.

47  {
48  }

◆ ArraySync() [2/2]

Initializes a new instance of the array class.

Parameters
lenInitial length

Attribute: len

;

55  {
56  _items = new ArrItem[len];
57  }

Member Data Documentation

◆ overflow

T this[] pluginbase.Objects.Syncable.Watchers.ArraySync< T >.overflow = null

Gets or sets the array with the specified index.

Parameters
idxIndex.

Property Documentation

◆ Length

Gets the length of the array

The length.

Event Documentation

◆ ItemChanged

ArrItem Action<int> pluginbase.Objects.Syncable.Watchers.ArraySync< T >.ItemChanged

Occurs when item changed, either by call or via network sync

Attribute: ] _items = new ArrItem[0

;

◆ SizeChanged

Action<int, T[]> pluginbase.Objects.Syncable.Watchers.ArraySync< T >.SizeChanged

Occurs when size changed.


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