mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-19 07:59:47 +03:00
create NResUI
This commit is contained in:
7
NResUI/Abstractions/IExitReceiver.cs
Normal file
7
NResUI/Abstractions/IExitReceiver.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace NResUI.Abstractions
|
||||
{
|
||||
public interface IExitReceiver
|
||||
{
|
||||
void OnExit();
|
||||
}
|
||||
}
|
7
NResUI/Abstractions/IImGuiPanel.cs
Normal file
7
NResUI/Abstractions/IImGuiPanel.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace NResUI.Abstractions
|
||||
{
|
||||
public interface IImGuiPanel
|
||||
{
|
||||
void OnImGuiRender();
|
||||
}
|
||||
}
|
17
NResUI/Abstractions/IKeyPressReceiver.cs
Normal file
17
NResUI/Abstractions/IKeyPressReceiver.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using Silk.NET.Input;
|
||||
|
||||
namespace NResUI.Abstractions
|
||||
{
|
||||
public interface IKeyPressReceiver
|
||||
{
|
||||
void OnKeyPressed(Key key);
|
||||
}
|
||||
public interface IKeyReleaseReceiver
|
||||
{
|
||||
void OnKeyReleased(Key key);
|
||||
}
|
||||
public interface IKeyDownReceiver
|
||||
{
|
||||
void OnKeyDown(Key key);
|
||||
}
|
||||
}
|
6
NResUI/Abstractions/IService.cs
Normal file
6
NResUI/Abstractions/IService.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace NResUI.Abstractions
|
||||
{
|
||||
public interface IService
|
||||
{
|
||||
}
|
||||
}
|
10
NResUI/Abstractions/IUpdateReceiver.cs
Normal file
10
NResUI/Abstractions/IUpdateReceiver.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace NResUI.Abstractions
|
||||
{
|
||||
public interface IUpdateReceiver
|
||||
{
|
||||
/// <summary>
|
||||
/// Called before every UI render
|
||||
/// </summary>
|
||||
void OnUpdate(float delta);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user