Empeld
Empeld plugin documentation.
|
Classes | |
class | ArraySync |
Syncable class that can synchronize other syncables that it can contain More... | |
class | ListSync |
class | MutableSync |
A special syncable type where the type (T) is not assumed eg. This can sync an interface, as long as the implementing type is also a syncable, and the type along with the values will be sync'd More... | |
class | SmoothSync |
Class to synchronize primitives that support addition and multiplication Smoothing (Interpolation) the result across time. Great for linear interpolation of positions, rotation and other such variable data. More... | |
class | Sync |
class | SyncBase |
Functions | |
int | Find (Func< T, bool > predicate) |
Find the index of an element in the array given the predicate otherwise returns -1 More... | |
int | FindNull () |
Find the index of the first available null spot Returns -1 if none exists More... | |
bool | AddToNullSlot (T item) |
Add an element to first available null slot. Returns true on success. More... | |
bool | Remove (T item) |
Remove the first occurance of an element in the array. Returns true on success. More... | |
void | Sort< TKey > (Func< T, TKey > expression) |
Sorts the array with a given expression More... | |
sealed override void | Persist (IPersistObject obj) |
sealed override void | Load (IReadPersistObject obj) |
bool pluginbase.Objects.Syncable.Watchers.AddToNullSlot | ( | T | item | ) |
Add an element to first available null slot. Returns true on success.
true
, if to null slot was added, false
otherwise.item | Item. |
int pluginbase.Objects.Syncable.Watchers.Find | ( | Func< T, bool > | predicate | ) |
Find the index of an element in the array given the predicate otherwise returns -1
predicate | Predicate. |
Attribute: i].Value != null && predicate(_items[i
.Value))
int pluginbase.Objects.Syncable.Watchers.FindNull | ( | ) |
|
protected |
Attribute: id
= new ItemData{
|
protected |
bool pluginbase.Objects.Syncable.Watchers.Remove | ( | T | item | ) |
void pluginbase.Objects.Syncable.Watchers.Sort< TKey > | ( | Func< T, TKey > | expression | ) |
Sorts the array with a given expression
expression | Expression. |
TKey | The 1st type parameter. |
Attribute: i] = sorted[i
;
Attribute: i
= new ArrItem{