示例#1
0
        public static void Init()
        {
            //create new command handler
            m_Handler = new CommandHandler();

            //add commands here
            m_Handler.Add(new GodMode("god"));
            m_Handler.Add(new NoClip("noclip"));
            m_Handler.Add(new Backup("backup"));
            m_Handler.Add(new Restore("restore"));
            m_Handler.Add(new Steal("steal"));
            m_Handler.Add(new Shoot("shoot"));
            m_Handler.Add(new Teleport("tp"));
            m_Handler.Add(new Teleport("teleport"));
            m_Handler.Add(new Lights("lights"));
        }
示例#2
0
 public static void DeInit()
 {
     //remove command handler
     m_Handler = null;
 }