private void WrapUpdateMethods(Connection connection)
        {
            var newObjectUpdates = connection.GenerateClientFunction("objectsync", "receiveNewObjects");

            onNewEntityHandlers[connection] = newObjectUpdates;

            var removedObjectUpdates = connection.GenerateClientFunction("objectsync", "removeObject");

            onRemovedEntityHandlers[connection] = removedObjectUpdates;

            var updatedObjectUpdates = connection.GenerateClientFunction("objectsync", "receiveObjectUpdates");

            UpdateQueue.RegisterToClientUpdates(connection, updatedObjectUpdates);
        }
Esempio n. 2
0
 void NotifyAboutObjectUpdates(Connection connection, Action <List <ClientUpdateQueue.UpdateInfo> > callback)
 {
     UpdateQueue.RegisterToClientUpdates(connection, callback);
 }