internal override void CompleteCommandListEntry(CommandList.Entry entry) { int actualParam = SingleParam; // just in case it's meaningful var list = new List <string>(); var listParams = new List <int>(); foreach (int ID in GetPossibleIntIDs()) { // update param in this object, and get the script for each ID SingleParam = ID; list.Add(GetCommandName().ToLower()); listParams.Add(ID); } entry.PossibleCommandsLower = list.ToArray(); entry.CustomData = listParams.ToArray(); SingleParam = actualParam; }
internal override void CompleteCommandListEntry(CommandList.Entry entry) { entry.PossibleCommandsLower = new[] { "null" }; }
/// <summary>This is called once when CommandList is being populated. The object must fill in PossibleCommands, and can also use CustomData if desired</summary> internal virtual void CompleteCommandListEntry(CommandList.Entry entry) { entry.PossibleCommandsLower = new[] { Strings.Item("Script_Command_" + Code).ToLower() }; }