Timeline Mixer Documentation
TimelineMixer.TrackProcessorManager Class Reference

Automatically discovers all classes that inherit from TrackProcessor and have the TrackProcessor attribute and creates an instance of them. More...

Public Member Functions

void RegisterProcessor (Type trackType, ITrackProcessor processor)
 Stores the track processor in a dictionary, which can be retrieved with the track type. More...
 
ITrackProcessor TryGetProcessor (Type trackType)
 Returns a track processor of the given type, or the default processor if there is no entry for that type More...
 

Private Member Functions

void RegisterAllProcessors ()
 Uses reflection to discover all track processors.
 

Detailed Description

Automatically discovers all classes that inherit from TrackProcessor and have the TrackProcessor attribute and creates an instance of them.

Member Function Documentation

◆ RegisterProcessor()

void TimelineMixer.TrackProcessorManager.RegisterProcessor ( Type  trackType,
ITrackProcessor  processor 
)
inline

Stores the track processor in a dictionary, which can be retrieved with the track type.

Parameters
trackTypeThe track type the processor supports.
processorThe Track Processor.

◆ TryGetProcessor()

ITrackProcessor TimelineMixer.TrackProcessorManager.TryGetProcessor ( Type  trackType)
inline

Returns a track processor of the given type, or the default processor if there is no entry for that type

Parameters
trackTypeThe type of the track processor we're trying to find. If the type was "AnimationTrack", and there is a processor that supports that track, it will return the corresponding processor
Returns
Classes that inherit TrackProcessor, which impliments the ITrackProcessor interface