15 lines
490 B
C#
15 lines
490 B
C#
namespace Age.Engine.Hosting;
|
|
public interface IHost
|
|
{
|
|
void ShowText(int offset, string text);
|
|
void WaitForInput();
|
|
void Sleep(long duration);
|
|
void FrameYield();
|
|
void CreateTexture(int slot, int width, int height);
|
|
void SetTexture(long resourceId, int slot);
|
|
void DrawTexture(int slot, int srcX, int srcY, int width, int height, int dstX, int dstY);
|
|
(int Width, int Height) GetTextureSize(int slot);
|
|
void PlayBgm(long id);
|
|
void PlayVoice(long id);
|
|
}
|