mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-10 02:35:42 +00:00
Use statement body for CurrentWorld property
This commit is contained in:
parent
e4f692d599
commit
ed98531950
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user