Empeld
Empeld plugin documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
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 >:
pluginbase.Objects.Syncable.SyncableBase< T > pluginbase.Objects.Syncable.INetSyncable pluginbase.Objects.Syncable.INetWatcher

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...
 
- Properties inherited from pluginbase.Objects.Syncable.INetSyncable
INetWatcher Watcher [get, set]
 Who is watching (who to inform of a change) More...
 
bool Modified [get]
 Gets a value indicating whether this pluginbase.Objects.Syncable.INetSyncable is modified. 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...
 
- Events inherited from pluginbase.Objects.Syncable.SyncableBase< T >
Action< T > Changed
 Event triggered when any change occurs on this object, either locally or over the network More...
 
Action< T > NetUpdate
 Event triggered when a change occurs resulting from a change over the network More...
 
Action< T > Touched
 Event occurs only when an object is first touched. Usually the first instance of a local-change More...
 

Additional Inherited Members

- Protected Member Functions inherited from pluginbase.Objects.Syncable.SyncableBase< T >
void Touch ()
 Touch the instance, notifying something has changed More...
 
virtual void TouchRecurse ()
 Touch the instance More...
 
virtual void ResetWatch ()
 Reset the touched state More...
 
virtual void OnChanged ()
 Raises the changed event. More...
 
abstract void EncodeTo (BinaryWriter writer, EncodeContext context)
 Encode changes to binary data More...
 
abstract void DecodeFrom (BinaryReader reader, DecodeContext context)
 Decode changes from binary data More...
 
abstract void Persist (IPersistObject obj)
 Persist the instance to a persist object More...
 
abstract void Load (IReadPersistObject obj)
 Load the instance from a persist object More...
 

Detailed Description

Syncable class that can synchronize other syncables that it can contain

Type Constraints
T :class 
T :INetSyncable 

Constructor & Destructor Documentation

pluginbase.Objects.Syncable.Watchers.ArraySync< T >.ArraySync ( )

Initializes a new instance of the class.

47  {
48  }
pluginbase.Objects.Syncable.Watchers.ArraySync< T >.ArraySync ( int  len)

Initializes a new instance of the array class.

Parameters
lenInitial length

Attribute: len

;

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

Member Data Documentation

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

Gets or sets the array with the specified index.

Parameters
idxIndex.

Property Documentation

int pluginbase.Objects.Syncable.Watchers.ArraySync< T >.Length
get

Gets the length of the array

The length.

Event Documentation

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

;

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: