Skip to main content
Version: 0.2.0

Class ReadyObjectExtensions

Namespace: ReadyM.Sdk.Common.Entities.Extensions
Assembly: ReadyM.Sdk.Common.dll

public static class ReadyObjectExtensions

Inheritance

objectReadyObjectExtensions

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Methods

get_AreaId<TSelf>(TSelf)

public static AreaId? get_AreaId<TSelf>(TSelf obj) where TSelf : struct, IReadyEntity<TSelf>, IReadyConvertable<TSelf, ReadyObject>

Parameters

obj TSelf

Returns

AreaId?

Type Parameters

TSelf

get_Owner<TSelf>(TSelf)

Gets the owner of the entity. This is usually the player that spawned the entity, or a player that was handled the ownership after the original owner disconnected.

public static PlayerId get_Owner<TSelf>(TSelf obj) where TSelf : struct, IReadyEntity<TSelf>, IReadyConvertable<TSelf, ReadyObject>

Parameters

obj TSelf

Returns

PlayerId

Type Parameters

TSelf

Exceptions

InvalidOperationException

  • Methods
    • get_AreaId<TSelf>(TSelf)
    • get_Owner<TSelf>(TSelf)