mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-22 19:58:48 +00:00
Use human-friendly ToString returns
This commit is contained in:
parent
00551e7777
commit
0f0d756925
@ -432,6 +432,6 @@ public sealed class VirtualParadiseAvatar : IEquatable<VirtualParadiseAvatar>
|
||||
/// <inheritdoc />
|
||||
public override string ToString()
|
||||
{
|
||||
return $"Avatar [Session={Session}, Name={Name}]";
|
||||
return $"Avatar #{Session}; {User.Name} ({Name})";
|
||||
}
|
||||
}
|
||||
|
@ -58,4 +58,10 @@ public sealed class VirtualParadiseMessage
|
||||
/// </summary>
|
||||
/// <value>The type of this message.</value>
|
||||
public MessageType Type { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public override string ToString()
|
||||
{
|
||||
return $"Message {Author}; Type {Type}; Content {Content}";
|
||||
}
|
||||
}
|
||||
|
@ -217,6 +217,12 @@ public abstract class VirtualParadiseObject : IEquatable<VirtualParadiseObject>
|
||||
return HashCode.Combine(Location.World, Id);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override string ToString()
|
||||
{
|
||||
return $"Object {Id}; Owner {Owner}; Location {Location}";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Copies the properties from another object into this object.
|
||||
/// </summary>
|
||||
|
@ -244,6 +244,6 @@ public sealed class VirtualParadiseUser : IEquatable<VirtualParadiseUser>
|
||||
/// <inheritdoc />
|
||||
public override string ToString()
|
||||
{
|
||||
return $"User [Id={Id}, Name={Name}]";
|
||||
return $"User #{Id}; {Name}";
|
||||
}
|
||||
}
|
||||
|
@ -134,6 +134,6 @@ public sealed class VirtualParadiseWorld : IEquatable<VirtualParadiseWorld>
|
||||
/// <inheritdoc />
|
||||
public override string ToString()
|
||||
{
|
||||
return $"World [Name={Name}]";
|
||||
return $"World {Name}";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user