22 lines
578 B
C#
22 lines
578 B
C#
using NBC;
|
|
|
|
namespace NBF.Fishing2
|
|
{
|
|
public class RoomHelper
|
|
{
|
|
public static async FTask EnterRoom(string roomCode)
|
|
{
|
|
var response = (G2C_EnterRoomResponse)await Net.Call(new C2G_EnterRoomRequest()
|
|
{
|
|
RoomCode = roomCode
|
|
});
|
|
Log.Info($"进入房间返回 Code={response.RoomCode} 房间玩家数量={response.Units.Count}");
|
|
// if (response.ErrorCode != 0)
|
|
// {
|
|
// return 0;
|
|
// }
|
|
|
|
// return response.MapId;
|
|
}
|
|
}
|
|
} |