How To Initialize A Numeric Room Property

Diarkis C# client Room class provides a method to update a numeric property without race condition.

Typically the user client that creates the room initializes the numeric room property.

NOTE: if you set sync flag to true, OnIncrPropertySync event will be raised on all remote member clients.

// This initializes a numeric room property named HP and its value will be 1000

bool sync = false; // we do not need to synchronize with other members assuming there is nobody yet

room.IncrProperty("HP", 1000, sync);

Last updated