예제 #1
0
 /// <summary>Helper method for debugging of IDictionary content, inlcuding type-information. Using this is not performant.</summary>
 /// <remarks>Should only be used for debugging as necessary.</remarks>
 /// <param name="origin">Some Dictionary or Hashtable.</param>
 /// <returns>String of the content of the IDictionary.</returns>
 public static string ToStringFull(this IDictionary origin)
 {
     return(SupportClass.DictionaryToString(origin, false));
 }
예제 #2
0
 /// <summary>Returns most interesting room values as string, including custom properties.</summary>
 /// <returns>Summary of this RoomInfo instance.</returns>
 public string ToStringFull()
 {
     return(string.Format("Room: '{0}' {1},{2} {4}/{3} players.\ncustomProps: {5}", this.name, this.isVisible ? "visible" : "hidden", this.isOpen ? "open" : "closed", this.maxPlayers, this.PlayerCount, SupportClass.DictionaryToString(this.customProperties)));
 }
예제 #3
0
 /// <summary>
 /// Brief summary string of the Player. Includes name or player.ID and if it's the Master Client.
 /// </summary>
 public override string ToString()
 {
     return((string.IsNullOrEmpty(this.NickName) ? this.ActorNumber.ToString() : this.nickName) + " " + SupportClass.DictionaryToString(this.CustomProperties));
 }