Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions VpSharp/src/Entities/VirtualParadiseZoneObject.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
namespace VpSharp.Entities;

/// <summary>
/// Represents a zone object.
/// </summary>
public sealed class VirtualParadiseZoneObject : VirtualParadiseObject
{
/// <summary>
/// Initializes a new instance of the <see cref="VirtualParadiseZoneObject" /> class.
/// </summary>
/// <param name="client">The owning client.</param>
/// <param name="id">The object ID.</param>
/// <exception cref="ArgumentNullException"><paramref name="client" /> is <see langword="null" />.</exception>
internal VirtualParadiseZoneObject(VirtualParadiseClient client, int id)
: base(client, id)
{
}
}
3 changes: 2 additions & 1 deletion VpSharp/src/Internal/ObjectType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ internal enum ObjectType
{
Model,
ParticleEmitter = 2,
Path
Path,
Zone
}
1 change: 1 addition & 0 deletions VpSharp/src/VirtualParadiseClient.Objects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ private async Task<VirtualParadiseObject> ExtractObjectAsync(nint sender)
ObjectType.Model => new VirtualParadiseModelObject(this, id),
ObjectType.ParticleEmitter => new VirtualParadiseParticleEmitterObject(this, id),
ObjectType.Path => new VirtualParadisePathObject(this, id),
ObjectType.Zone => new VirtualParadiseZoneObject(this, id),
_ => throw new NotSupportedException(ExceptionMessages.UnsupportedObjectType)
};

Expand Down
Loading