/// <summary> /// コンストラクター /// </summary> public MoveTask(Map.EventMoveTask type, bool intArg, string strArg) { this.Type = type; this.intOption = Convert.ToInt32(intArg); this.strOption = strArg; this.isFlagOption = true; }
/// <summary> /// コンストラクター /// </summary> /// <param name="type">指示内容</param> /// <param name="intArg">オプション整数値</param> /// <param name="altIntArg">オプション整数値の置き換え名(列挙体名・定数など)</param> /// <param name="comment">整数値に付けるコメント</param> /// <param name="strArg">オプション文字列値</param> public MoveTask(Map.EventMoveTask type, int intArg, string altIntArg, string comment, string strArg) { this.Type = type; this.intOption = intArg; this.altIntOption = altIntArg; this.intComment = comment; this.strOption = strArg; this.isFlagOption = false; }
/// <summary> /// 指示を追加する /// </summary> private void AddTask(string text, Map.EventMoveTask type, int arg = 0, string altArg = "", string argComment = "", string str = "") { this.lstTasks.Items.Add(new TaskType(text, new MoveTask(type, arg, altArg, argComment, str))); this.lstTasks.SelectedIndex = this.lstTasks.Items.Count - 1; }
private void AddTask(string text, Map.EventMoveTask type, bool arg, string str = "") { text += " " + (arg ? "ON" : "OFF"); this.lstTasks.Items.Add(new TaskType(text, new MoveTask(type, arg, str))); this.lstTasks.SelectedIndex = this.lstTasks.Items.Count - 1; }
/// <summary> /// スクリプト用の列挙体として指示内容を取得する /// </summary> public static string GetMoveTypeCode(Map.EventMoveTask taskType) { return(SQ.ToSQEnum(typeof(Map.EventMoveTask), (int)taskType)); }