mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 10:08:31 +00:00
29 lines
705 B
C#
29 lines
705 B
C#
using System;
|
|
|
|
namespace RGB.NET.Core
|
|
{
|
|
public class AbstractUpdateTrigger : AbstractBindable, IUpdateTrigger
|
|
{
|
|
#region Events
|
|
|
|
/// <inheritdoc />
|
|
public event EventHandler<CustomUpdateData> Starting;
|
|
/// <inheritdoc />
|
|
public event EventHandler<CustomUpdateData> Update;
|
|
|
|
#endregion
|
|
|
|
#region Methods
|
|
|
|
protected virtual void OnStartup(CustomUpdateData updateData = null) => Starting?.Invoke(this, updateData);
|
|
|
|
protected virtual void OnUpdate(CustomUpdateData updateData = null) => Update?.Invoke(this, updateData);
|
|
|
|
/// <inheritdoc />
|
|
public virtual void Dispose()
|
|
{ }
|
|
|
|
#endregion
|
|
}
|
|
}
|