public override void Join(GameType type) { if (!inPrivateRoom) { int typeNum = 2; if (type.HasFlag(GameType.Match_EastSouth)) { typeNum += 1; } if (type.HasFlag(GameType.Level_Phoenix)) { typeNum += 9; } else if (type.HasFlag(GameType.Level_VeryHigh)) { typeNum += 6; } else if (type.HasFlag(GameType.Level_High)) { typeNum += 3; } Send(ws, ".lq.Lobby.matchGame", new { match_mode = typeNum }).Wait(); } else { Send(ws, ".lq.Lobby.readyPlay", new { ready = true }).Wait(); } }
public override void Join(GameType type) { if (!inPrivateRoom) { int typeNum = 2; if (type.HasFlag(GameType.Match_EastSouth)) { typeNum += 1; } if (type.HasFlag(GameType.Level_Throne)) { typeNum += 12; } else if (type.HasFlag(GameType.Level_Jade)) { typeNum += 9; } else if (type.HasFlag(GameType.Level_Gold)) { typeNum += 6; } else if (type.HasFlag(GameType.Level_Silver)) { typeNum += 3; } Send(ws, ".lq.Lobby.matchGame", new { match_mode = typeNum }).Wait(); expectMessage(".lq.FastTest.authGame", timeout: 60000, timeoutMessage: "Game matching timed out."); } else { Send(ws, ".lq.Lobby.readyPlay", new { ready = true }).Wait(); } }
public bool isAllLast(GameType gameType) { return(!gameType.HasFlag(GameType.Match_EastSouth) && (seq == 4 || direction == Direction.S) || (direction == Direction.S && seq == 4 || direction == Direction.W)); }