示例#1
0
文件: Command.cs 项目: stuart2w/SAW
        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;
        }
示例#2
0
文件: Command.cs 项目: stuart2w/SAW
 internal override void CompleteCommandListEntry(CommandList.Entry entry)
 {
     entry.PossibleCommandsLower = new[] { "null" };
 }
示例#3
0
文件: Command.cs 项目: stuart2w/SAW
 /// <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() };
 }