Skip to main content
Version: 1.1.1

Struct ScriptPolicyDefault

Namespace: OblivionMP.SDK.Common.Archetypes.Mixins
Assembly: OblivionMP.SDK.Common.dll

How the session runs each kind of the game's scripts for every ref that has no rule of its own.

[ArchetypeMixin(Replication.ServerAuthoritative)]
[Extends(typeof(World), "")]
public readonly struct ScriptPolicyDefault : IArchetypeMixin, IArchetypeQueryable, IEntityShape

Implements​

IArchetypeMixin, IArchetypeQueryable, IEntityShape

Inherited Members​

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

Properties​

Actors​

How the scripts of actors run.

public ActorScriptPolicy Actors { get; set; }

Property Value​

ActorScriptPolicy

DialogueResults​

How the result scripts of dialogue responses run.

public DialogueResultPolicy DialogueResults { get; set; }

Property Value​

DialogueResultPolicy

Objects​

How the scripts of objects run.

public ObjectScriptPolicy Objects { get; set; }

Property Value​

ObjectScriptPolicy

Quests​

How quest scripts run.

public QuestScriptPolicy Quests { get; set; }

Property Value​

QuestScriptPolicy

Targets​

How script commands that change a ref run. Unset reads as Everywhere.

public ScriptTargetPolicy Targets { get; set; }

Property Value​

ScriptTargetPolicy

Methods​

As<T>()​

public T As<T>() where T : struct, IArchetypeQueryable

Returns​

T

Type Parameters​

T

Is<T>()​

public bool Is<T>() where T : struct, IArchetypeQueryable

Returns​

bool

Type Parameters​

T

Keep()​

This entity, which it already is: a loop over this shape hands over the shape itself.

public ScriptPolicyDefault Keep()

Returns​

ScriptPolicyDefault

Remarks​

Here so taking something out of a loop reads the same whichever way the loop walks. Whether a shape is walked by chunk follows from what it includes, which the call site cannot see and which changes when an include does.

TryAs<T>(out T)​

public bool TryAs<T>(out T archetype) where T : struct, IArchetypeQueryable

Parameters​

archetype T

Returns​

bool

Type Parameters​

T

  • Properties
    • Actors
    • DialogueResults
    • Objects
    • Quests
    • Targets
  • Methods
    • As<T>()
    • Is<T>()
    • Keep()
    • TryAs<T>(out T)