From a02ed11898dce1ab46cc542877b9eabad59af929 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Mon, 27 Jun 2022 18:24:18 +0000 Subject: [PATCH] notes on NAT command arg types --- projects/nat-archive-tool/src/nat/ArchiveController.hx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/projects/nat-archive-tool/src/nat/ArchiveController.hx b/projects/nat-archive-tool/src/nat/ArchiveController.hx index ec94e980..a29be194 100644 --- a/projects/nat-archive-tool/src/nat/ArchiveController.hx +++ b/projects/nat-archive-tool/src/nat/ArchiveController.hx @@ -7,13 +7,21 @@ import uuid.Uuid; import nat.systems.*; enum CommandArgType { + // When called interactively, automatically pass the currently selected Entry(s) to the function + // TODO eventually these will also be passed automatically when called programatically SelectedEntry; SelectedEntries(min:Null, max:Null); + // String input Text(maxLength:Null); // max length is a float so Math.POSITIVE_INFINITY can be used + // Any number of string inputs: VarText(maxLength:Null); + // Numerical input, can be forced to align with a fixed step from the minimum Number(min:Null, max:Null, inStepsOf:Null); + // Make the user select Entry(s) when called interactively OneEntry; // This constructor must be disambiguated from the typedef "Entry" Entries(min:Null, max:Null); + // TODO Tag -- make sure a tag input is a valid haxe variable name for tagsMatch compatibility + // TODO VarTag } typedef CommandArg = {