private void restoreAllWorker(int slotNo) { if (!workerRestored && itemSelected) { Log.Post("Restore All Workers", LogModule.AutoWorkerRestore); Pipe.Call.DoString(LuaFunctions.WorkerRestore_Confirm(slotNo)); Thread.Sleep(2000); workerRestored = true; } }
private void selectRestoreItem(int slotNo) { if (!itemSelected) { openWorkerRestore(); Log.Post("Select RestoreItem", LogModule.AutoWorkerRestore); Pipe.Call.DoString(LuaFunctions.WorkerRestore_SelectItem(slotNo)); Thread.Sleep(500); itemSelected = true; } }
public bool LoadScript(string text, string scriptName, Type type) { bool result = false; if (type == Type.Lua) { LuaFunctions luaFunctions = new LuaFunctions(); if (luaFunctions.LoadScript(text, scriptName)) { FunctionsSets.Add(luaFunctions); } } else { CSharpFunctions netFunctions = new CSharpFunctions(); if (netFunctions.LoadScript(text, scriptName)) { FunctionsSets.Add(netFunctions); } } return(result); }
public void Init() { csharpFunctions = new CSharpFunctions(); luaFunctions = new LuaFunctions(); }
public void Init() { functions = new LuaFunctions(); }
public void Init() { Debug.IsLogEnabled = true; csharpFunctions = new CSharpFunctions(); luaFunctions = new LuaFunctions(); }
public void Init() { Debug.IsLogEnabled = false; functions = new LuaFunctions(); }