Пример #1
0
        public void Destroy()
        {
            RecycleState();

            if (mMachine != null)
            {
                mMachine.Destroy();

                ObjCachePoolMgr.Instance.RecycleCSharpObject(mMachine, ObjCachePoolType.MACHINE, mMachinePoolKey);

                mMachine = null;
            }

            mDestList.Release();
        }
Пример #2
0
        static int _m_Destroy(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.Machine __cl_gen_to_be_invoked = (xc.Machine)translator.FastGetCSObj(L, 1);


            try {
                {
                    __cl_gen_to_be_invoked.Destroy(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }