Skip to main content
Version: 1.0.0

Struct AiIntentEntry

Namespace: ReadyM.Relay.Common.Oblivion.ECS.Values
Assembly: ReadyM.Relay.Common.Oblivion.dll

One package the server wants an npc to run. The target and the location are entities when the server has them, otherwise ref IDs. When both are set the entity is used. Entities only exist within a session, so they are not saved.

public struct AiIntentEntry : INetSerializable

Implements​

INetSerializable

Inherited Members​

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

Fields​

Flags​

Extra options, such as AlwaysRun.

public AiIntentFlags Flags

Field Value​

AiIntentFlags

LocationPosition​

A place to go to when there is no LocationRefId.

public Vector3 LocationPosition

Field Value​

Vector3

LocationRefId​

The ref id of the place to go to, or 0.

public uint LocationRefId

Field Value​

uint

PackageType​

What to do.

public AiPackageType PackageType

Field Value​

AiPackageType

Radius​

How close counts as there, or how far to wander.

public float Radius

Field Value​

float

Seq​

The order's sequence number. AiIntents.Enqueue fills it in.

public ushort Seq

Field Value​

ushort

TargetPosition​

A target position carried with the order. No package uses it yet.

public Vector3 TargetPosition

Field Value​

Vector3

TargetRefId​

The ref id of who or what the package acts on, or 0.

public uint TargetRefId

Field Value​

uint

  • Fields
    • Flags
    • LocationPosition
    • LocationRefId
    • PackageType
    • Radius
    • Seq
    • TargetPosition
    • TargetRefId