跳到主要内容
版本:Next

Class WorldRefs

Namespace: OblivionMp.Sdk.Serverside.World
Assembly: OblivionMp.Sdk.Serverside.dll

Finds the entities that stand for game refs and tells where they are.

public sealed class WorldRefs

Inheritance​

object ← WorldRefs

Inherited Members​

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

Constructors​

WorldRefs(IEntities)​

Finds the entities that stand for game refs and tells where they are.

public WorldRefs(IEntities entities)

Parameters​

entities IEntities

Methods​

IsCellMaster(FullCellId, PlayerId)​

public bool IsCellMaster(FullCellId cellId, PlayerId player)

Parameters​

cellId FullCellId

player PlayerId

Returns​

bool

IsInArea(EntityHandle, AreaId)​

public bool IsInArea(EntityHandle entity, AreaId area)

Parameters​

entity EntityHandle

area AreaId

Returns​

bool

LeveledListExists(FormId)​

public bool LeveledListExists(FormId id)

Parameters​

id FormId

Returns​

bool

TryFind(uint, out EntityHandle)​

public bool TryFind(uint refId, out EntityHandle entity)

Parameters​

refId uint

entity EntityHandle

Returns​

bool

TryFindActor(PlayerId, uint, out EntityHandle)​

public bool TryFindActor(PlayerId player, uint refId, out EntityHandle entity)

Parameters​

player PlayerId

refId uint

entity EntityHandle

Returns​

bool

TryFindContainer(uint, out Container)​

public bool TryFindContainer(uint refId, out Container container)

Parameters​

refId uint

container Container

Returns​

bool

TryFindFlora(uint, out Flora)​

public bool TryFindFlora(uint refId, out Flora flora)

Parameters​

refId uint

flora Flora

Returns​

bool

TryFindNpc(uint, out Npc)​

public bool TryFindNpc(uint refId, out Npc npc)

Parameters​

refId uint

npc Npc

Returns​

bool

  • Constructors
    • WorldRefs(IEntities)
  • Methods
    • IsCellMaster(FullCellId, PlayerId)
    • IsInArea(EntityHandle, AreaId)
    • LeveledListExists(FormId)
    • TryFind(uint, out EntityHandle)
    • TryFindActor(PlayerId, uint, out EntityHandle)
    • TryFindContainer(uint, out Container)
    • TryFindFlora(uint, out Flora)
    • TryFindNpc(uint, out Npc)