Class AlwaysOnCondition
Represents a condition that is always true.
Namespace: Artemis.Core
Assembly: Artemis.Core.dll
Syntax
public class AlwaysOnCondition : ICondition, IDisposable, IStorageModel
Constructors
AlwaysOnCondition(RenderProfileElement)
Creates a new instance of the AlwaysOnCondition class.
Declaration
public AlwaysOnCondition(RenderProfileElement profileElement)
Parameters
Type | Name | Description |
---|---|---|
RenderProfileElement | profileElement | The profile element this condition applies to. |
AlwaysOnCondition(AlwaysOnConditionEntity, RenderProfileElement)
Creates a new instance of the AlwaysOnCondition class.
Declaration
public AlwaysOnCondition(AlwaysOnConditionEntity alwaysOnConditionEntity, RenderProfileElement profileElement)
Parameters
Type | Name | Description |
---|---|---|
AlwaysOnConditionEntity | alwaysOnConditionEntity | The entity used to store this condition. |
RenderProfileElement | profileElement | The profile element this condition applies to. |
Properties
Entity
Gets the entity used to store this condition
Declaration
public IConditionEntity Entity { get; }
Property Value
Type | Description |
---|---|
IConditionEntity |
IsMet
Gets a boolean indicating whether the condition is currently met
Declaration
public bool IsMet { get; }
Property Value
Type | Description |
---|---|
bool |
ProfileElement
Gets the profile element this condition applies to
Declaration
public RenderProfileElement ProfileElement { get; }
Property Value
Type | Description |
---|---|
RenderProfileElement |
Methods
Dispose()
Declaration
public void Dispose()
Load()
Loads the model from its associated entity
Declaration
public void Load()
OverrideTimeline(TimeSpan)
Overrides the timeline to the provided position
as the display condition sees fit.
Declaration
public void OverrideTimeline(TimeSpan position)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | position |
Save()
Saves the model to its associated entity
Declaration
public void Save()
Update()
Updates the condition
Declaration
public void Update()
UpdateTimeline(double)
Updates the timeline according to the provided deltaTime
as the display condition sees fit.
Declaration
public void UpdateTimeline(double deltaTime)
Parameters
Type | Name | Description |
---|---|---|
double | deltaTime |