Serialization::RealtimeArray

RealtimeArray is a special model type that can be used in your own custom models. It is designed to be a sequential list of models that can be modified at runtime.

Modifying the array sends the minimal amount of information necessary for other clients to replicate the change. The whole collection is not sent every time.


Properties

Methods

Events

Property Definitions

int Count

The total number of items in the RealtimeSet, including the items that have been added locally and have yet to be confirmed by the server.

Method Definitions

void Add(TValue value)

Adds a model to the RealtimeArray. This method will immediately fire a modelAdded event.

Event Definitions

ModelAdded modelAdded

An event that fires whenever an item is added. This event includes a boolean to signal whether the model was added by the local client or a remote client.