/// <summary> /// 设置帧同步帧率 /// </summary> /// <param name="roomId">房间ID</param> /// <param name="gameId">游戏ID</param> /// <param name="rate">帧率</param> /// <param name="enableGS">GameServer是否参与帧同步(0:不参与;1:参与)</param> public void SetFrameSyncRate(UInt64 roomId, UInt32 gameId, UInt32 rate, UInt32 enableGS, UInt32 userId = 1, UInt32 version = 2) { GSSetFrameSyncRate setFrameSyncRateReq = new GSSetFrameSyncRate() { GameID = gameId, RoomID = roomId, FrameRate = rate, Priority = 0, FrameIdx = 1, EnableGS = enableGS, }; baseServer.PushToHotel(userId, version, roomId, (UInt32)HotelGsCmdID.GssetFrameSyncRateCmdid, setFrameSyncRateReq); }
/// <summary> /// 推送给Hotel,根据roomID来区分是哪个Hotel /// </summary> /// <param name="roomID"></param> /// <param name="msg"></param> public void PushToHotel(UInt64 roomID, IMessage msg, UInt32 userId = 1, UInt32 version = 2) { baseServer.PushToHotel(userId, version, roomID, (UInt32)HotelGsCmdID.HotelPushCmdid, msg); }