|
|
@ -42,66 +42,69 @@ protected function Finalizer() |
|
|
|
|
|
|
|
|
|
|
|
protected function BuildData(CommandDataBuilder builder) |
|
|
|
protected function BuildData(CommandDataBuilder builder) |
|
|
|
{ |
|
|
|
{ |
|
|
|
builder.Name(P("feature")).Group(P("admin")) |
|
|
|
builder.Group(P("admin")); |
|
|
|
.Summary(P("Managing features.")) |
|
|
|
builder.Summary(P("Managing features.")); |
|
|
|
.Describe(P("Command for managing features and their configs.")); |
|
|
|
builder.Describe(P("Command for managing features and their configs.")); |
|
|
|
builder.SubCommand(P("enable")) |
|
|
|
builder.SubCommand(P("enable")); |
|
|
|
.ParamText(P("feature"),, P("feature")) |
|
|
|
builder.ParamText(P("feature"),, P("feature")); |
|
|
|
.OptionalParams() |
|
|
|
builder.OptionalParams(); |
|
|
|
.ParamText(P("config")) |
|
|
|
builder.ParamText(P("config")); |
|
|
|
.Describe(P("Enables specified <feature>. If <config> isn't specified -" |
|
|
|
builder.Describe(P("Enables specified <feature>. If <config> isn't specified -" |
|
|
|
@ "choses the \"default\" one, making new config with default" |
|
|
|
@ "choses the \"default\" one, making new config with default" |
|
|
|
@ "settings if it doesn't exist.")); |
|
|
|
@ "settings if it doesn't exist.")); |
|
|
|
builder.SubCommand(P("disable")) |
|
|
|
builder.SubCommand(P("disable")); |
|
|
|
.ParamText(P("feature"),, P("feature")) |
|
|
|
builder.ParamText(P("feature"),, P("feature")); |
|
|
|
.Describe(P("Disables specified <feature>.")); |
|
|
|
builder.Describe(P("Disables specified <feature>.")); |
|
|
|
builder.SubCommand(P("showconf")) |
|
|
|
builder.SubCommand(P("showconf")); |
|
|
|
.ParamText(P("feature"),, P("feature")) |
|
|
|
builder.ParamText(P("feature"),, P("feature")); |
|
|
|
.OptionalParams() |
|
|
|
builder.OptionalParams(); |
|
|
|
.ParamText(P("config")) |
|
|
|
builder.ParamText(P("config")); |
|
|
|
.Describe(P("Show given <config> for the given <feature>.")); |
|
|
|
builder.Describe(P("Show given <config> for the given <feature>.")); |
|
|
|
builder.SubCommand(P("editconf")) |
|
|
|
builder.SubCommand(P("editconf")); |
|
|
|
.ParamText(P("feature"),, P("feature")) |
|
|
|
builder.ParamText(P("feature"),, P("feature")); |
|
|
|
.ParamText(P("config")) |
|
|
|
builder.ParamText(P("config")); |
|
|
|
.ParamText(P("variable_path")) |
|
|
|
builder.ParamText(P("variable_path")); |
|
|
|
.ParamJSON(P("value")) |
|
|
|
builder.ParamJSON(P("value")); |
|
|
|
.Describe(P("Changes a value inside given <config> of the given" |
|
|
|
builder.Describe(P("Changes a value inside given <config> of the given" |
|
|
|
@ "<feature> by setting value at JSON path <variable_path> to" |
|
|
|
@ "<feature> by setting value at JSON path <variable_path> to" |
|
|
|
@ "the JSON value <value>. Changes won't be immediately applied to" |
|
|
|
@ "the JSON value <value>. Changes won't be immediately applied to" |
|
|
|
@ "the game and kept as pending.")); |
|
|
|
@ "the game and kept as pending.")); |
|
|
|
builder.SubCommand(P("saveconf")) |
|
|
|
builder.SubCommand(P("saveconf")); |
|
|
|
.ParamText(P("feature"),, P("feature")) |
|
|
|
builder.ParamText(P("feature"),, P("feature")); |
|
|
|
.ParamText(P("config")) |
|
|
|
builder.ParamText(P("config")); |
|
|
|
.Describe(P("Saves pending changes for the given <config> of the given" |
|
|
|
builder.Describe(P("Saves pending changes for the given <config> of the given" |
|
|
|
@ "<feature>.")); |
|
|
|
@ "<feature>.")); |
|
|
|
builder.SubCommand(P("newconf")) |
|
|
|
builder.SubCommand(P("newconf")); |
|
|
|
.ParamText(P("feature"),, P("feature")) |
|
|
|
builder.ParamText(P("feature"),, P("feature")); |
|
|
|
.ParamText(P("config")) |
|
|
|
builder.ParamText(P("config")); |
|
|
|
.Describe(P("Creates new config for the given <feature>.")); |
|
|
|
builder.Describe(P("Creates new config for the given <feature>.")); |
|
|
|
builder.SubCommand(P("removeconf")) |
|
|
|
builder.SubCommand(P("removeconf")); |
|
|
|
.ParamText(P("feature"),, P("feature")) |
|
|
|
builder.ParamText(P("feature"),, P("feature")); |
|
|
|
.ParamText(P("config")) |
|
|
|
builder.ParamText(P("config")); |
|
|
|
.Describe(P("Removes specified <config> of the specified <feature>.")); |
|
|
|
builder.Describe(P("Removes specified <config> of the specified <feature>.")); |
|
|
|
builder.SubCommand(P("autoconf")) |
|
|
|
builder.SubCommand(P("autoconf")); |
|
|
|
.ParamText(P("feature"),, P("feature")) |
|
|
|
builder.ParamText(P("feature"),, P("feature")); |
|
|
|
.OptionalParams() |
|
|
|
builder.OptionalParams(); |
|
|
|
.ParamText(P("config")) |
|
|
|
builder.ParamText(P("config")); |
|
|
|
.Describe(P("Changes current auto config config of the specified" |
|
|
|
builder.Describe(P("Changes current auto config config of the specified" |
|
|
|
@ "<feature>. Auto config is a config that is supposed to be" |
|
|
|
@ "<feature>. Auto config is a config that is supposed to be" |
|
|
|
@ "automatically enabled at the start of the Acedia, unless" |
|
|
|
@ "automatically enabled at the start of the Acedia, unless" |
|
|
|
@ "otherwise specified for the loader.")); |
|
|
|
@ "otherwise specified for the loader.")); |
|
|
|
builder.Option(P("all")) |
|
|
|
builder.Option(P("all")); |
|
|
|
.Describe(F("Affects subcommand {$TextEmphasis showconf} by making it" |
|
|
|
builder.Describe(F("Affects subcommand {$TextEmphasis showconf} by making it" |
|
|
|
@ "show all available configs.")); |
|
|
|
@ "show all available configs.")); |
|
|
|
builder.Option(P("save")) |
|
|
|
builder.Option(P("save")); |
|
|
|
.Describe(F("Affects subcommand {$TextEmphasis editconf} by making it" |
|
|
|
builder.Describe(F("Affects subcommand {$TextEmphasis editconf} by making it" |
|
|
|
@ "also save all pending changes.")); |
|
|
|
@ "also save all pending changes.")); |
|
|
|
announcer = ACommandFeature_Announcer( |
|
|
|
announcer = ACommandFeature_Announcer( |
|
|
|
_.memory.Allocate(class'ACommandFeature_Announcer')); |
|
|
|
_.memory.Allocate(class'ACommandFeature_Announcer')); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected function Executed(CallData arguments, EPlayer instigator) |
|
|
|
protected function Executed( |
|
|
|
{ |
|
|
|
CallData arguments, |
|
|
|
|
|
|
|
EPlayer instigator, |
|
|
|
|
|
|
|
CommandPermissions permissions |
|
|
|
|
|
|
|
) { |
|
|
|
local bool saveFlag, allFlag; |
|
|
|
local bool saveFlag, allFlag; |
|
|
|
|
|
|
|
|
|
|
|
announcer.Setup(none, instigator, othersConsole); |
|
|
|
announcer.Setup(none, instigator, othersConsole); |
|
|
@ -637,6 +640,6 @@ private function HashTable GetCurrentSelectedConfigData() |
|
|
|
return GetCurrentConfigData(selectedConfigName); |
|
|
|
return GetCurrentConfigData(selectedConfigName); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
defaultproperties |
|
|
|
defaultproperties { |
|
|
|
{ |
|
|
|
preferredName = "feature" |
|
|
|
} |
|
|
|
} |