コード例 #1
0
 public Script(string path, string name, Plugin_Core refer)
 {
     Parent     = refer;
     FileName   = name.Replace(".py", "");
     ScriptExec = new Interpreter();
     ScriptExec.addVar("Log", new Action <object>(log));
     ScriptExec.loadCode(path);
 }
コード例 #2
0
		public Script(string path, string name, Plugin_Core refer)
		{
			Parent = refer;
			this.name = name.Replace(".py", "");
            ScriptExec = new Interpreter();
			ScriptExec.addVar("Log", new Action<object>(log));
			ScriptExec.loadCode(path);
			

		}