コード例 #1
0
ファイル: AutoRestore.cs プロジェクト: wanjizheng/R3p.BDO
        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;
            }
        }
コード例 #2
0
ファイル: AutoRestore.cs プロジェクト: wanjizheng/R3p.BDO
        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;
            }
        }
コード例 #3
0
ファイル: Functions.cs プロジェクト: smrkdev/ProjectPorcupine
    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);
    }
コード例 #4
0
 public void Init()
 {
     csharpFunctions = new CSharpFunctions();
     luaFunctions    = new LuaFunctions();
 }
コード例 #5
0
 public void Init()
 {
     functions = new LuaFunctions();
 }
コード例 #6
0
 public void Init()
 {
     Debug.IsLogEnabled = true;
     csharpFunctions    = new CSharpFunctions();
     luaFunctions       = new LuaFunctions();
 }
コード例 #7
0
 public void Init()
 {
     Debug.IsLogEnabled = false;
     functions          = new LuaFunctions();
 }