Get RAPTOR

RaptorEntityBodyProvider

Supplies options for the Properties "Body" block (RaptorEntityBodies.Options).

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorclasspreview, since 0.1.0

A provider supplies options for one or more bodies. For each body, the provider with the highest Priority wins; on a tie, the one registered first wins.

public sealed class RaptorEntityBodyProvider

Constructors

RaptorEntityBodyProvider

public RaptorEntityBodyProvider(string id, int priority, params RaptorEntityBodies.Option[] options)

Creates a provider.

ParameterTypeDescription
idstringThe provider's stable id.
priorityintThe priority; the highest wins for each body.
optionsparams RaptorEntityBodies.Option[]The options.

Fields

Id

public readonly string Id;

A unique id, for example "raptor.core" or "game.prop-wrapper". Trimmed on registration.

Options

public readonly IReadOnlyList<RaptorEntityBodies.Option> Options;

The bodies this provider supplies, one option per body. If a body repeats, the first option counts.

Priority

public readonly int Priority;

The provider's priority; the highest wins for each body. Core's built-ins use RaptorEntityBodyProviders.BuiltInPriority.