void IRoomRPCMethodClient.updateRoomData(RoomData data)
        {
            log?.logTrace($"{name} 收到房间数据改变事件。房间数据:{data}");

            cachedRoomData = data;
            OnRoomDataChange?.Invoke(cachedRoomData);
            OnRoomDataChange(cachedRoomData);
        }
 private void roomDataChangeEvtHandler(RoomData obj)
 {
     OnRoomDataChange?.Invoke(obj);
 }
 void IRoomRPCMethodClient.onRoomPropChange(string name, object val)
 {
     log?.logTrace($"{this.name} 收到房间属性改变事件。Key: {name}, Value: {val}");
     cachedRoomData.setProp(name, val);
     OnRoomDataChange?.Invoke(cachedRoomData);
 }