Class ProfileModule
Allows you to add support for new games/applications while utilizing Artemis' profile engine
Inheritance
System.Object
ProfileModule
Implements
System.IDisposable
Inherited Members
Namespace: Artemis.Core.Modules
Assembly: Artemis.Core.dll
Syntax
public abstract class ProfileModule : Module, INotifyPropertyChanged, IDisposable
Constructors
| Improve this Doc View SourceProfileModule()
Creates a new instance of the ProfileModule class
Declaration
protected ProfileModule()
Fields
| Improve this Doc View SourceHiddenPropertiesList
Gets a list of all properties ignored at runtime using IgnoreProperty(x => x.y)
Declaration
protected readonly List<PropertyInfo> HiddenPropertiesList
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Reflection.PropertyInfo> |
Properties
| Improve this Doc View SourceActiveProfile
Gets the currently active profile
Declaration
public Profile ActiveProfile { get; }
Property Value
Type | Description |
---|---|
Profile |
AnimatingProfileChange
Indicates whether or not a profile change is being animated
Declaration
public bool AnimatingProfileChange { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HiddenProperties
Gets a list of all properties ignored at runtime using IgnoreProperty(x => x.y)
Declaration
public ReadOnlyCollection<PropertyInfo> HiddenProperties { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<System.Reflection.PropertyInfo> |
IsProfileUpdatingDisabled
Disables updating the profile, rendering does continue
Declaration
public bool IsProfileUpdatingDisabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
OpacityOverride
Overrides the opacity of the root folder
Declaration
public double OpacityOverride { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceOnActiveProfileChanged()
Invokes the ActiveProfileChanged event
Declaration
protected virtual void OnActiveProfileChanged()
ProfileRendered(Double, SKCanvas, SKImageInfo)
Called after the profile has rendered
Declaration
public virtual void ProfileRendered(double deltaTime, SKCanvas canvas, SKImageInfo canvasInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Double | deltaTime | Time since the last render |
SkiaSharp.SKCanvas | canvas | |
SkiaSharp.SKImageInfo | canvasInfo |
ProfileUpdated(Double)
Called after the profile has updated
Declaration
public virtual void ProfileUpdated(double deltaTime)
Parameters
Type | Name | Description |
---|---|---|
System.Double | deltaTime | Time in seconds since the last update |
Events
| Improve this Doc View SourceActiveProfileChanged
Occurs when the ActiveProfile has changed
Declaration
public event EventHandler ActiveProfileChanged
Event Type
Type | Description |
---|---|
System.EventHandler |
Implements
System.IDisposable