RaptorEntityBodyProvider
Supplies options for the Properties "Body" block (RaptorEntityBodies.Options).
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.EditorTools | Raptor.Editor | class | preview, 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 RaptorEntityBodyProviderConstructors
RaptorEntityBodyProvider
public RaptorEntityBodyProvider(string id, int priority, params RaptorEntityBodies.Option[] options)Creates a provider.
| Parameter | Type | Description |
|---|---|---|
id | string | The provider's stable id. |
priority | int | The priority; the highest wins for each body. |
options | params 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.
Related types
- RaptorEntityBodies.Option: One Body option: its label, icon, availability and switching steps.
- RaptorEntityBodyProviders: The priority registry of entity body providers.