IsDefault
How do I use Is Default
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
56 | if (lobby != null && !lobby.IsDefault) | 1 |
File name: LoadbalancingPeer.cs
Copy
48 public virtual bool OpJoinLobby(TypedLobby lobby)
49 {
50 if (this.DebugOut >= DebugLevel.INFO)
51 {
52 this.Listener.DebugReturn(DebugLevel.INFO, "OpJoinLobby()");
53 }
54
55 Dictionary
56 if (lobby != null && !lobby.IsDefault)
57 {
58 parameters = new Dictionary
59 parameters[(byte)ParameterCode.LobbyName] = lobby.Name;
60 parameters[(byte)ParameterCode.LobbyType] = (byte)lobby.Type;
61 }
62
63 return this.OpCustom(OperationCode.JoinLobby, parameters, true);
64 }
IsDefault 105 lượt xem
Gõ tìm kiếm nhanh...