Exemplo n.º 1
0
        static int _g_get_Id(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.IActorAttribute __cl_gen_to_be_invoked = (xc.IActorAttribute)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.Id);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Exemplo n.º 2
0
        static int _s_set_Value(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.IActorAttribute __cl_gen_to_be_invoked = (xc.IActorAttribute)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.Value = LuaAPI.lua_toint64(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemplo n.º 3
0
        static int _m_GetAttr(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    uint key = LuaAPI.xlua_touint(L, 2);

                    xc.IActorAttribute __cl_gen_ret = __cl_gen_to_be_invoked.GetAttr(key);
                    translator.Push(L, __cl_gen_ret);



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