예제 #1
0
파일: Commands.cs 프로젝트: Punk-Sky/PunkOS
 public static void remove(string name)
 {
     for (int i = 0; i < commands.Length; i++)
     {
         if (name == commands[i].text)
         {
             commands[i] = new commandBase("removed", new commandBase.command(Commands_command.nothing));
             break;
         }
     }
 }
예제 #2
0
파일: Commands.cs 프로젝트: Punk-Sky/PunkOS
 /// <summary>
 /// add a command to the system
 /// </summary>
 /// <param name="com">command info</param>
 public static void add(commandBase com)
 {
     commands[icommand] = com;
     icommand++;
 }
예제 #3
0
 /// <summary>
 /// add a command to the system
 /// </summary>
 /// <param name="com">command info</param>
 public static void add(commandBase com)
 {
     commands[icommand] = com;
     icommand++;
 }
예제 #4
0
파일: Commands.cs 프로젝트: Punk-Sky/PunkOS
        /// <summary>
        /// add a command to the system
        /// </summary>
        /// <param name="com">command info</param>
        /// <param name="helpinfo">help info</param>
        public static void add(commandBase com, string helpinfo)
        {
            if (icommand <= icommandlimit - 1)
            {
                commands[icommand] = com;
                commands[icommand].sethelp(helpinfo);
                icommand++;
            }
            else
            {

            }
        }
예제 #5
0
 /// <summary>
 /// add a command to the system
 /// </summary>
 /// <param name="com">command info</param>
 /// <param name="helpinfo">help info</param>
 public static void add(commandBase com, string helpinfo)
 {
     commands[icommand] = com;
     commands[icommand].sethelp(helpinfo);
     icommand++;
 }