Interface IOwnership
Represts the ownership of an object.
Namespace: OpenMod.Extensions.Games.Abstractions.Acl
Assembly: OpenMod.Extensions.Games.Abstractions.dll
Syntax
public interface IOwnership
Properties
| Improve this Doc View SourceHasOwner
Checks if the object has an owner. Either OwnerPlayerId or OwnerGroupId will not be null if true.
Declaration
bool HasOwner { get; }
Property Value
Type | Description |
---|---|
System.Boolean | True if the object has an owner; otherwise, false. |
OwnerGroupId
Gets the ID of the group owning this object. Returns null if no group owns the object.
Declaration
string? OwnerGroupId { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
OwnerPlayerId
Gets the ID of the player owning this object. Returns null if no player owns the object.
Declaration
string? OwnerPlayerId { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
Methods
| Improve this Doc View SourceHasAccessAsync(IPlayer)
Checks if the given player has access to this object.
Declaration
Task<bool> HasAccessAsync(IPlayer player)
Parameters
Type | Name | Description |
---|---|---|
IPlayer | player | The player to check against. |
Returns
Type | Description |
---|---|
Task<System.Boolean> | True if the player has access; otherwise, false. |