Example #1
0
        public static void Run(string script, object target)
        {
            var bindings = new ScriptBindings(target);

            Basic = new BasicScriptRunner(bindings);
            Basic.Run(script);
        }
Example #2
0
 public AutoHookedScriptRunner(string script, ScriptBindings bindings) : this()
 {
     bindings.Initialize(Lua);
     LoadScript(script);
 }
Example #3
0
 public AutoHookedScriptRunner(ScriptBindings bindings) : this()
 {
     bindings.Initialize(Lua);
 }
Example #4
0
 public static void Run(string script, ScriptBindings bindings)
 {
     Basic = new BasicScriptRunner();
     Basic.AddBindings(bindings);
     Basic.Run(script);
 }
Example #5
0
 public void RemoveBindings(ScriptBindings bindings)
 {
     bindings.Clean(lua);
 }
Example #6
0
 public void AddBindings(ScriptBindings bindings)
 {
     bindings.Initialize(lua);
 }
Example #7
0
        public BasicScriptRunner(params Action[] actions) : this()
        {
            ScriptBindings b = new ScriptBindings(actions);

            b.Initialize(lua);
        }
Example #8
0
        public BasicScriptRunner(params Delegate[] dels) : this()
        {
            ScriptBindings b = new ScriptBindings(dels);

            b.Initialize(lua);
        }
Example #9
0
 public BasicScriptRunner(ScriptBindings bindings) : this()
 {
     bindings.Initialize(lua);
 }