Skip to main content

Datastore

Datastore

The datastore for a Normcore Room. This class holds all models that belong to a room's datastore.

Events

prefabRealtimeViewModelAdded

event PrefabViewModelAdded prefabRealtimeViewModelAdded

Internal. Do not use.

This will switch from public to internal in the next major version.

prefabRealtimeViewModelRemoved

event PrefabViewModelRemoved prefabRealtimeViewModelRemoved

Internal. Do not use.

This will switch from public to internal in the next major version.

Properties

roomModel

RealtimeModel roomModel { get; }

The room model that was supplied to Realtime.Connect or Room.Connect.

This will switch from public to internal in the next major version.

sceneViewModels

StringKeyDictionary<RealtimeViewModel> sceneViewModels { get; }

Internal. Do not use.

This will switch from public to internal in the next major version.

prefabViewModels

RealtimeSet<RealtimeViewModel> prefabViewModels { get; }

Internal. Do not use.

This will switch from public to internal in the next major version.

writeBuffer

WriteBuffer writeBuffer { get; }

Methods

Reset

void Reset(Room room, RealtimeModel roomModel = null)

Internal. Do not use.

This will switch from public to internal in the next major version.

GetSceneRealtimeViewModelForUUID

RealtimeViewModel GetSceneRealtimeViewModelForUUID(byte[] sceneViewUUID)

Internal. Do not use.

This will switch from public to internal in the next major version.

ConnectSceneRealtimeViewModel

void ConnectSceneRealtimeViewModel(string sceneViewUUID, RealtimeViewModel sceneViewViewModel, Action<bool, RealtimeViewModel> completionHandler)

Internal. Do not use.

This will switch from public to internal in the next major version.

AddPrefabRealtimeViewModel

void AddPrefabRealtimeViewModel(RealtimeViewModel prefabViewModel)

RemovePrefabRealtimeViewModel

bool RemovePrefabRealtimeViewModel(RealtimeViewModel model)

Deserialize

void Deserialize(byte[] buffer)

SerializeDeltaUpdates

void SerializeDeltaUpdates(bool reliable, uint updateID, double roomTime)

DeserializeDeltaUpdates

uint DeserializeDeltaUpdates(byte[] buffer, bool reliable, bool updateIsFromUs, double currentRoomTime)

WriteLength

int WriteLength(StreamContext context)

Write

void Write(WriteStream stream, StreamContext context)

Read

void Read(ReadStream stream, StreamContext context)