- ヘルプセンター
- Diarkis C++ SDK
- Room
Room の数値プロパティを初期化する方法
以下の例は、Room を作成したクライアントにより数値型のルームプロパティを初期化するものです。
// This initializes a numeric room property named HP and its value will be 1000
string propertyName = "HP";
int64_t delta = 1000;
// we do not need to synchronize with other members assuming there is nobody yet
bool sync = false;
this->room->IncrementProperty(propertyName , delta , sync);