コード例 #1
0
        public void Init()
        {
            console = new AgateConsoleCore();

            AgateConsole.Initialize(console);
            AgateConsole.CommandLibraries.Add(probe);
        }
コード例 #2
0
        public void Initialize(ITestResources resources)
        {
            whiteTexture = resources.WhiteTexture;
            spriteBatch  = new SpriteBatch(resources.GraphicsDevice);
            console      = new AgateConsole(new ConsoleRenderer(resources.GraphicsDevice,
                                                                new ConsoleTextEngine(resources.Fonts)));

            font = new Font(resources.Fonts.Default);

            console.AddVocabulary(new BoxVocabulary(points));
        }
コード例 #3
0
 public void Remove(string library = null)
 {
     if (library != "library")
     {
         AgateConsole.Execute("help remove");
     }
     else
     {
         AgateConsole.CommandLibraries.Clear();
         AgateConsole.WriteLine("Removed the throw and remove commands.");
     }
 }
コード例 #4
0
 public void Initialize()
 {
     AgateConsole.Initialize(console);
 }