mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
48 lines
1.5 KiB
C#
48 lines
1.5 KiB
C#
using System;
|
|
using Artemis.Core.Events;
|
|
|
|
namespace Artemis.Core.Services.Interfaces
|
|
{
|
|
public interface ICoreService : IArtemisService, IDisposable
|
|
{
|
|
/// <summary>
|
|
/// Gets whether the or not the core has been initialized
|
|
/// </summary>
|
|
bool IsInitialized { get; }
|
|
|
|
/// <summary>
|
|
/// The time the last frame took to render
|
|
/// </summary>
|
|
TimeSpan FrameTime { get; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets whether modules are updated each frame by calling their Update method
|
|
/// </summary>
|
|
bool PluginUpdatingDisabled { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets whether modules are rendered each frame by calling their Render method
|
|
/// </summary>
|
|
bool ModuleRenderingDisabled { get; set; }
|
|
|
|
/// <summary>
|
|
/// Initializes the core, only call once
|
|
/// </summary>
|
|
void Initialize();
|
|
|
|
/// <summary>
|
|
/// Occurs the core has finished initializing
|
|
/// </summary>
|
|
event EventHandler Initialized;
|
|
|
|
/// <summary>
|
|
/// Occurs whenever a frame is rendering, after modules have rendered
|
|
/// </summary>
|
|
event EventHandler<FrameRenderingEventArgs> FrameRendering;
|
|
|
|
/// <summary>
|
|
/// Occurs whenever a frame is finished rendering and processed by RGB.NET
|
|
/// </summary>
|
|
event EventHandler<FrameRenderedEventArgs> FrameRendered;
|
|
}
|
|
} |