1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-23 00:28:48 +00:00

Use human-friendly ToString returns

This commit is contained in:
Oliver Booth 2022-11-30 19:07:40 +00:00
parent 00551e7777
commit 0f0d756925
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
5 changed files with 15 additions and 3 deletions

View File

@ -432,6 +432,6 @@ public sealed class VirtualParadiseAvatar : IEquatable<VirtualParadiseAvatar>
/// <inheritdoc /> /// <inheritdoc />
public override string ToString() public override string ToString()
{ {
return $"Avatar [Session={Session}, Name={Name}]"; return $"Avatar #{Session}; {User.Name} ({Name})";
} }
} }

View File

@ -58,4 +58,10 @@ public sealed class VirtualParadiseMessage
/// </summary> /// </summary>
/// <value>The type of this message.</value> /// <value>The type of this message.</value>
public MessageType Type { get; } public MessageType Type { get; }
/// <inheritdoc />
public override string ToString()
{
return $"Message {Author}; Type {Type}; Content {Content}";
}
} }

View File

@ -217,6 +217,12 @@ public abstract class VirtualParadiseObject : IEquatable<VirtualParadiseObject>
return HashCode.Combine(Location.World, Id); return HashCode.Combine(Location.World, Id);
} }
/// <inheritdoc />
public override string ToString()
{
return $"Object {Id}; Owner {Owner}; Location {Location}";
}
/// <summary> /// <summary>
/// Copies the properties from another object into this object. /// Copies the properties from another object into this object.
/// </summary> /// </summary>

View File

@ -244,6 +244,6 @@ public sealed class VirtualParadiseUser : IEquatable<VirtualParadiseUser>
/// <inheritdoc /> /// <inheritdoc />
public override string ToString() public override string ToString()
{ {
return $"User [Id={Id}, Name={Name}]"; return $"User #{Id}; {Name}";
} }
} }

View File

@ -134,6 +134,6 @@ public sealed class VirtualParadiseWorld : IEquatable<VirtualParadiseWorld>
/// <inheritdoc /> /// <inheritdoc />
public override string ToString() public override string ToString()
{ {
return $"World [Name={Name}]"; return $"World {Name}";
} }
} }