| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "PosX", _g_get_PosX); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "PosY", _g_get_PosY); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadow", _g_get_shadow); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "effect", _g_get_effect); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "uieffect", _g_get_uieffect); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "mob", _g_get_mob); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "cam", _g_get_cam); |
| | |
| | | |
| | | ActorShowConfig gen_to_be_invoked = (ActorShowConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.shadow); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_effect(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | ActorShowConfig gen_to_be_invoked = (ActorShowConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.effect); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |