Use statement body for CurrentWorld property

This commit is contained in:
Oliver Booth 2022-11-30 18:17:40 +00:00
parent e4f692d599
commit ed98531950
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
1 changed files with 13 additions and 1 deletions

View File

@ -79,7 +79,19 @@ public sealed partial class VirtualParadiseClient : IDisposable
/// The world to which this client is currently connected, or <see langword="null" /> if this client is not currently
/// in a world.
/// </value>
public VirtualParadiseWorld? CurrentWorld => CurrentAvatar?.Location.World;
public VirtualParadiseWorld? CurrentWorld
{
get => CurrentAvatar?.Location.World;
}
/// <summary>
/// Gets a read-only view of the cached worlds.
/// </summary>
/// <value>The cached worlds.</value>
public IReadOnlyList<VirtualParadiseWorld> Worlds
{
get => _worlds.Values.ToArray();
}
/// <summary>
/// Establishes a connection to the universe at the specified remote endpoint.