Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 internal override void CompleteCommandListEntry(CommandList.Entry entry)
 {
     entry.PossibleCommandsLower = new[] { "null" };
 }
Ejemplo n.º 3
0
 /// <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() };
 }