Evaluate() public method

public Evaluate ( String command ) : void
command String
return void
コード例 #1
0
ファイル: Script.cs プロジェクト: timdetering/Tantric.Xna
 // Simply tell the interpreter to run each command
 public void Execute(List <String> arguments)
 {
     foreach (String Command in m_Commands)
     {
         m_Interpreter.Evaluate(Command);
     }
 }
コード例 #2
0
ファイル: TantricEntry.cs プロジェクト: TheEtiologist/tantric
        public Engine(IGame game)
        {
            _internalReference = this;
            _lock = new Object();
            m_Graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            m_SceneManager = new Graphical.SceneManager();
            m_TrashCompactor = new Tantric.Trash.TrashCompactor();
            m_Interpreter = new Tantric.Scripting.CommandInterpreter();
            m_Game = game;

            Scripting.QuantumLanguage.InitializeLanguage(m_Interpreter);
            m_Interpreter.Evaluate("EntryScript");
        }
コード例 #3
0
        public Engine(IGame game)
        {
            _internalReference = this;
            _lock                 = new Object();
            m_Graphics            = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            m_SceneManager        = new Graphical.SceneManager();
            m_TrashCompactor      = new Tantric.Trash.TrashCompactor();
            m_Interpreter         = new Tantric.Scripting.CommandInterpreter();
            m_Game                = game;

            Scripting.QuantumLanguage.InitializeLanguage(m_Interpreter);
            m_Interpreter.Evaluate("EntryScript");
        }