How To Update A Numeric Room Property And Synchronize

When calling IncrProperty with sync flag true, OnIncrPropertySync event will be raised on all remote member clients.

You may increment or decrement a numeric room property and auto-synchronize with the other members of the room.

// This event is raised when the update is synchronized from another member
room.OnIncrPropertySync += OnDiarkisRoomIncrPropertySync;

private void OnDiarkisRoomIncrPropertySync(long updatedValue)
{
        // Update UI and do something awesome
}

// This is how you update a numeric room property
// This will be subtracting HP by 100
// synchronize = true means auto-synchronization
bool  synchronize = true;

room.IncrProperty("HP", -100, synchronize);
~