|
|
@ -797,17 +797,29 @@ public final function CommandDataBuilder ParamNumberList( |
|
|
|
* parameter's value in `HashTable` after user's command input |
|
|
|
* parameter's value in `HashTable` after user's command input |
|
|
|
* is parsed. Provided value will be copied. |
|
|
|
* is parsed. Provided value will be copied. |
|
|
|
* If left `none`, - will coincide with `name` parameter. |
|
|
|
* If left `none`, - will coincide with `name` parameter. |
|
|
|
|
|
|
|
* @param aliasSourceName Name of the alias source that must be used to |
|
|
|
|
|
|
|
* auto-resolve this parameter's value. `none` means that parameter will be |
|
|
|
|
|
|
|
* recorded as-is, any other value (either "weapon", "color", "feature", |
|
|
|
|
|
|
|
* "entity" or some kind of custom alias source name) will make values |
|
|
|
|
|
|
|
* prefixed with "$" to be resolved as aliases. |
|
|
|
* @return Returns the caller `CommandDataBuilder` to allow for |
|
|
|
* @return Returns the caller `CommandDataBuilder` to allow for |
|
|
|
* method chaining. |
|
|
|
* method chaining. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public final function CommandDataBuilder ParamText( |
|
|
|
public final function CommandDataBuilder ParamText( |
|
|
|
BaseText name, |
|
|
|
BaseText name, |
|
|
|
optional BaseText variableName) |
|
|
|
optional BaseText variableName, |
|
|
|
|
|
|
|
optional BaseText aliasSourceName) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
local Command.Parameter newParameterValue; |
|
|
|
|
|
|
|
|
|
|
|
if (name == none) { |
|
|
|
if (name == none) { |
|
|
|
return self; |
|
|
|
return self; |
|
|
|
} |
|
|
|
} |
|
|
|
PushParameter(NewParameter(name, CPT_Text, false, variableName)); |
|
|
|
newParameterValue = NewParameter(name, CPT_Text, false, variableName); |
|
|
|
|
|
|
|
if (aliasSourceName != none) { |
|
|
|
|
|
|
|
newParameterValue.aliasSourceName = aliasSourceName.Copy(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
PushParameter(newParameterValue); |
|
|
|
return self; |
|
|
|
return self; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -824,17 +836,29 @@ public final function CommandDataBuilder ParamText( |
|
|
|
* parameter's value in `HashTable` after user's command input |
|
|
|
* parameter's value in `HashTable` after user's command input |
|
|
|
* is parsed. Provided value will be copied. |
|
|
|
* is parsed. Provided value will be copied. |
|
|
|
* If left `none`, - will coincide with `name` parameter. |
|
|
|
* If left `none`, - will coincide with `name` parameter. |
|
|
|
|
|
|
|
* @param aliasSource Name of the alias source that must be used to |
|
|
|
|
|
|
|
* auto-resolve this parameter's value. `none` means that parameter will be |
|
|
|
|
|
|
|
* recorded as-is, any other value (either "weapon", "color", "feature", |
|
|
|
|
|
|
|
* "entity" or some kind of custom alias source name) will make values |
|
|
|
|
|
|
|
* prefixed with "$" to be resolved as aliases. |
|
|
|
* @return Returns the caller `CommandDataBuilder` to allow for |
|
|
|
* @return Returns the caller `CommandDataBuilder` to allow for |
|
|
|
* method chaining. |
|
|
|
* method chaining. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public final function CommandDataBuilder ParamTextList( |
|
|
|
public final function CommandDataBuilder ParamTextList( |
|
|
|
BaseText name, |
|
|
|
BaseText name, |
|
|
|
optional BaseText variableName) |
|
|
|
optional BaseText variableName, |
|
|
|
|
|
|
|
optional BaseText aliasSourceName) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
local Command.Parameter newParameterValue; |
|
|
|
|
|
|
|
|
|
|
|
if (name == none) { |
|
|
|
if (name == none) { |
|
|
|
return self; |
|
|
|
return self; |
|
|
|
} |
|
|
|
} |
|
|
|
PushParameter(NewParameter(name, CPT_Text, true, variableName)); |
|
|
|
newParameterValue = NewParameter(name, CPT_Text, true, variableName); |
|
|
|
|
|
|
|
if (aliasSourceName != none) { |
|
|
|
|
|
|
|
newParameterValue.aliasSourceName = aliasSourceName.Copy(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
PushParameter(newParameterValue); |
|
|
|
return self; |
|
|
|
return self; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|