Example #1
0
        public void Start(GameMode gameMode)
        {
            CommandGroup.Register("tools", "t", CommandGroup.Register("test", "t"));
            CommandGroup.Register("vehicle", "v");

            DetectedCommand cmd = Command.GetAll <DetectedCommand>().FirstOrDefault(c => c.Name == "console");

            Console.WriteLine("Command paths: {0}", string.Join(", ", cmd.CommandPaths));
        }