/// <summary>
        /// 当前是否在指定的副本状态
        /// </summary>
        /// <param name="state"></param>
        /// <returns></returns>
        public bool IsInState(uint state)
        {
            xc.Machine.State curState = mMachine.GetCurState();
            if (curState != null)
            {
                xc.Machine.State childState = curState.GetChild();
                if (childState != null)
                {
                    return(childState.GetID() == state);
                }
            }

            return(false);
        }
Exemple #2
0
        static int _m_GetChild(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    xc.Machine.State __cl_gen_ret = __cl_gen_to_be_invoked.GetChild(  );
                    translator.Push(L, __cl_gen_ret);



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