Class EventSearch
Namespace: ValveResourceFormat.Animation
Assembly: ValveResourceFormat.dll
Shared helpers for the event-searching value nodes.
csharp
public static class EventSearchInheritance
object ← EventSearch
Fields
FootPhaseSyncIDs
The sync event ID of each foot phase, indexed by FootPhase.
csharp
public static readonly StringToken[] FootPhaseSyncIDsField Value
Methods
CalculateSearchRange(GraphContext, StateNode?, BitFlags)
The events to search: the source state's sampled range when the rules restrict the search, otherwise the whole buffer.
csharp
public static SampledEventRange CalculateSearchRange(GraphContext ctx, StateNode? sourceStateNode, BitFlags rules)Parameters
ctx GraphContext
sourceStateNode StateNode?
rules BitFlags
Returns
TryGetFootPhase(in SampledEvent, out FootPhase)
Extracts the foot phase from a sampled animation event. No clip seen so far contains foot events; this reads the raw event data so authored ones would still work.
csharp
public static bool TryGetFootPhase(in SampledEvent sampledEvent, out FootPhase phase)Parameters
sampledEvent SampledEvent
phase FootPhase
Returns
bool
TryGetTransitionEvent(in SampledEvent, out TransitionRule, out StringToken)
Extracts the rule and optional ID from a sampled transition animation event.
csharp
public static bool TryGetTransitionEvent(in SampledEvent sampledEvent, out TransitionRule rule, out StringToken optionalID)Parameters
sampledEvent SampledEvent
rule TransitionRule
optionalID StringToken
Returns
bool

