mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-22 19:38:47 +00:00
Code cleanup
This commit is contained in:
parent
64eb4190bb
commit
304b043c98
@ -284,11 +284,7 @@ public sealed partial class VirtualParadiseClient
|
|||||||
int avatarCount = vp_int(sender, IntegerAttribute.WorldUsers);
|
int avatarCount = vp_int(sender, IntegerAttribute.WorldUsers);
|
||||||
var state = (WorldState)vp_int(sender, IntegerAttribute.WorldState);
|
var state = (WorldState)vp_int(sender, IntegerAttribute.WorldState);
|
||||||
|
|
||||||
world = new VirtualParadiseWorld(this, name)
|
world = new VirtualParadiseWorld(this, name) {AvatarCount = avatarCount, State = state};
|
||||||
{
|
|
||||||
AvatarCount = avatarCount,
|
|
||||||
State = state
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_worldListChannel is not null)
|
if (_worldListChannel is not null)
|
||||||
@ -443,7 +439,9 @@ public sealed partial class VirtualParadiseClient
|
|||||||
worldName = vp_string(sender, StringAttribute.TeleportWorld);
|
worldName = vp_string(sender, StringAttribute.TeleportWorld);
|
||||||
}
|
}
|
||||||
|
|
||||||
VirtualParadiseWorld? world = string.IsNullOrWhiteSpace(worldName) ? CurrentWorld : await GetWorldAsync(worldName).ConfigureAwait(false);
|
VirtualParadiseWorld? world = string.IsNullOrWhiteSpace(worldName)
|
||||||
|
? CurrentWorld
|
||||||
|
: await GetWorldAsync(worldName).ConfigureAwait(false);
|
||||||
var location = new Location(world, position, rotation);
|
var location = new Location(world, position, rotation);
|
||||||
|
|
||||||
VirtualParadiseAvatar? avatar = GetAvatar(session);
|
VirtualParadiseAvatar? avatar = GetAvatar(session);
|
||||||
|
Loading…
Reference in New Issue
Block a user