RoomInfo.ToString C# (CSharp) 메소드

ToString() 공개 메소드

Simple printingin method.
public ToString ( ) : string
리턴 string
    public override string ToString()
    {
        return string.Format("Room: '{0}' visible: {1} open: {2} max: {3} count: {4}\ncustomProps: {5}", this.nameField, this.visibleField, this.openField, this.maxPlayersField, this.playerCount, SupportClass.DictionaryToString(this.customPropertiesField));
    }

Usage Example

예제 #1
0
 public override void OnCreateRoom(RoomInfo roomInfo, RoomPlayerInfo[] playerInfos)
 {
     if (roomInfo == null)
     {
         Log("CreateRoom failed reason ");
     }
     else
     {
         Log("CreateRoom " + roomInfo.ToString());
     }
 }
All Usage Examples Of RoomInfo::ToString