Struct PluginProjectilePathResult
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
The answer to one projectile-path query.
public readonly record struct PluginProjectilePathResult : IEquatable<PluginProjectilePathResult>
- Implements
- Inherited Members
Constructors
PluginProjectilePathResult(PluginProjectilePathStatus, int, uint, string?)
The answer to one projectile-path query.
public PluginProjectilePathResult(PluginProjectilePathStatus Status, int CollisionChecks = 0, uint BlockingObjectId = 0, string? Notice = null)
Parameters
StatusPluginProjectilePathStatusWhether the shot was admitted, and if not, why not.
CollisionChecksintHow many collision steps the query actually performed.
BlockingObjectIduintThe object that stopped the shot, or the target's own id when the flight ended on the target. Zero when the landscape stopped it or nothing did.
NoticestringA short explanation for a budget or error result; null otherwise.
Properties
BlockingObjectId
The object that stopped the shot, or the target's own id when the flight ended on the target. Zero when the landscape stopped it or nothing did.
public uint BlockingObjectId { get; init; }
Property Value
CollisionChecks
How many collision steps the query actually performed.
public int CollisionChecks { get; init; }
Property Value
DebugSamples
The per-step markers of the simulated flight. Empty unless the query was made through the diagnostics overload.
public IReadOnlyList<PluginProjectileDebugSample> DebugSamples { get; init; }
Property Value
IsClear
True only when the status is Clear.
public bool IsClear { get; }
Property Value
Notice
A short explanation for a budget or error result; null otherwise.
public string? Notice { get; init; }
Property Value
Status
Whether the shot was admitted, and if not, why not.
public PluginProjectilePathStatus Status { get; init; }