Ejemplo n.º 1
0
        public Commands(ApplicationController controller)
        {
            this.controller = controller;

            Terminal.Instance.RegisterCommand("quit", "Shuts the server down.", false,
                ShutDown, new List<string> { "q", "exit" });
            Terminal.Instance.RegisterCommand("removeEntities", "Removes all entities from the server.", false,
                RemoveAllEntities, new List<string> { "re", "clean" });
            Terminal.Instance.RegisterCommand("numEntities", "Prints number of entities in the world.", false,
                PrintNumEntities, new List<string> { "ne" });
            Terminal.Instance.RegisterCommand("plugins", "Prints list of loaded and deferred plugins if any.", false,
                                              ListPlugins);
        }