清理项目目录,引入 InputModule 做多平台输入适配
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
namespace SepCore.InputModule
|
||||
{
|
||||
public readonly struct InputPrompt
|
||||
{
|
||||
public InputPrompt(string textLabel, string spriteName = null)
|
||||
{
|
||||
TextLabel = textLabel ?? string.Empty;
|
||||
SpriteName = spriteName ?? string.Empty;
|
||||
}
|
||||
|
||||
public string TextLabel { get; }
|
||||
|
||||
public string SpriteName { get; }
|
||||
|
||||
public bool HasSprite => !string.IsNullOrEmpty(SpriteName);
|
||||
|
||||
public bool IsValid => !string.IsNullOrEmpty(TextLabel);
|
||||
|
||||
public static readonly InputPrompt None = new InputPrompt(string.Empty);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user