Class AlwaysOnCondition
Represents a condition that is always true.
public class AlwaysOnCondition : ICondition, IDisposable, IStorageModel, IPluginFeatureDependent
- Inheritance
-
objectAlwaysOnCondition
- Implements
Constructors
AlwaysOnCondition(RenderProfileElement)
Creates a new instance of the AlwaysOnCondition class.
public AlwaysOnCondition(RenderProfileElement profileElement)
Parameters
profileElementRenderProfileElementThe profile element this condition applies to.
AlwaysOnCondition(AlwaysOnConditionEntity, RenderProfileElement)
Creates a new instance of the AlwaysOnCondition class.
public AlwaysOnCondition(AlwaysOnConditionEntity alwaysOnConditionEntity, RenderProfileElement profileElement)
Parameters
alwaysOnConditionEntityAlwaysOnConditionEntityThe entity used to store this condition.
profileElementRenderProfileElementThe profile element this condition applies to.
Properties
Entity
Gets the entity used to store this condition
public IConditionEntity Entity { get; }
Property Value
- IConditionEntity
IsMet
Gets a boolean indicating whether the condition is currently met
public bool IsMet { get; }
Property Value
ProfileElement
Gets the profile element this condition applies to
public RenderProfileElement ProfileElement { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
GetFeatureDependencies()
Gets the plugin features this class depends on, may contain the same plugin feature twice if depending on it in multiple ways.
public IEnumerable<PluginFeature> GetFeatureDependencies()
Returns
- IEnumerable<PluginFeature>
A List<T> of PluginFeature this class depends on.
Load()
Loads the model from its associated entity
public void Load()
OverrideTimeline(TimeSpan)
Overrides the timeline to the provided position as the display condition sees fit.
public void OverrideTimeline(TimeSpan position)
Parameters
positionTimeSpan
Save()
Saves the model to its associated entity
public void Save()
Update()
Updates the condition
public void Update()
UpdateTimeline(double)
Updates the timeline according to the provided deltaTime as the display condition sees fit.
public void UpdateTimeline(double deltaTime)
Parameters
deltaTimedouble