1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using System;
- namespace NTERA.Core.Interop
- {
- public enum ConsoleRedraw
- {
- None = 0,
- Normal = 1
- }
- public enum DisplayLineAlignment
- {
- LEFT = 0,
- CENTER = 1,
- RIGHT = 2
- }
- public enum InputType
- {
- EnterKey = 1,//Enterキーかクリック
- AnyKey = 2,//なんでもいいから入力
- IntValue = 3,//整数値。OneInputかどうかは別の変数で
- StrValue = 4,//文字列。
- Void = 5//入力不能。待つしかない→スキップ中orマクロ中ならなかったことになる
- }
-
- // 1819追加 入力・表示系とData、Process系の結合を弱くしよう計画の一つ
- // できるだけ間にクッションをおいていきたい。最終的には別スレッドに
- //クラスを毎回使い捨てるのはどうなんだろう 使いまわすべきか
- public class InputRequest
- {
- public InputRequest()
- {
- ID = LastRequestID++;
- }
- public readonly Int64 ID;
- public InputType InputType;
- public bool NeedValue => (InputType == InputType.IntValue || InputType == InputType.StrValue);
- public bool OneInput = false;
- public bool StopMesskip = false;
- public bool IsSystemInput = false;
- public bool HasDefValue = false;
- public long DefIntValue;
- public string DefStrValue;
- public long Timelimit = -1;
- public bool DisplayTime;
- public string TimeUpMes;
- static Int64 LastRequestID;
- }
- }
|