#if USE_UNI_LUA
|
using LuaAPI = UniLua.Lua;
|
using RealStatePtr = UniLua.ILuaState;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
#else
|
using LuaAPI = XLua.LuaDLL.Lua;
|
using RealStatePtr = System.IntPtr;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
#endif
|
|
using XLua;
|
using System.Collections.Generic;
|
|
|
namespace XLua.CSObjectWrap
|
{
|
using Utils = XLua.Utils;
|
public class UIEffectWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(UIEffect);
|
Utils.BeginObjectRegister(type, L, translator, 0, 8, 13, 11);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Active", _m_Active);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetOrder", _m_ResetOrder);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMask", _m_SetMask);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Stop", _m_Stop);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "StopImediatly", _m_StopImediatly);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayer", _m_SetLayer);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Preview", _m_Preview);
|
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "duration", _g_get_duration);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsPlaying", _g_get_IsPlaying);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "maskArea", _g_get_maskArea);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderQueue", _g_get_renderQueue);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "effect", _g_get_effect);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "target", _g_get_target);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "effectPos", _g_get_effectPos);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "effectRot", _g_get_effectRot);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "effectScl", _g_get_effectScl);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "playOnAwake", _g_get_playOnAwake);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "loop", _g_get_loop);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "keep", _g_get_keep);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnComplete", _g_get_OnComplete);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "maskArea", _s_set_maskArea);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "renderQueue", _s_set_renderQueue);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "effect", _s_set_effect);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "target", _s_set_target);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "effectPos", _s_set_effectPos);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "effectRot", _s_set_effectRot);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "effectScl", _s_set_effectScl);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "playOnAwake", _s_set_playOnAwake);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "loop", _s_set_loop);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "keep", _s_set_keep);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnComplete", _s_set_OnComplete);
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
null, null, null);
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
|
|
|
|
|
|
Utils.EndClassRegister(type, L, translator);
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int __CreateInstance(RealStatePtr L)
|
{
|
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
if(LuaAPI.lua_gettop(L) == 1)
|
{
|
|
UIEffect gen_ret = new UIEffect();
|
translator.Push(L, gen_ret);
|
|
return 1;
|
}
|
|
}
|
catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return LuaAPI.luaL_error(L, "invalid arguments to UIEffect constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Play(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.Play( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Active(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.Active( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_ResetOrder(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int __order = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.ResetOrder( __order );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SetMask(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.SetMask( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Stop(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.Stop( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_StopImediatly(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.StopImediatly( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_SetLayer(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int __layer = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.SetLayer( __layer );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Preview(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
string __name = LuaAPI.lua_tostring(L, 2);
|
|
gen_to_be_invoked.Preview( __name );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_duration(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.duration);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_IsPlaying(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsPlaying);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_maskArea(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.maskArea);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_renderQueue(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.renderQueue);
|
} 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);
|
|
UIEffect gen_to_be_invoked = (UIEffect)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);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_target(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.target);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_effectPos(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
translator.PushUnityEngineVector3(L, gen_to_be_invoked.effectPos);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_effectRot(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
translator.PushUnityEngineVector3(L, gen_to_be_invoked.effectRot);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_effectScl(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
translator.PushUnityEngineVector3(L, gen_to_be_invoked.effectScl);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_playOnAwake(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.playOnAwake);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_loop(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.loop);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_keep(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.keep);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_OnComplete(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.OnComplete);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_maskArea(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.maskArea = (UnityEngine.RectTransform)translator.GetObject(L, 2, typeof(UnityEngine.RectTransform));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_renderQueue(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.renderQueue = LuaAPI.xlua_tointeger(L, 2);
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_effect(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.effect = LuaAPI.xlua_tointeger(L, 2);
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_target(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.target = (Snxxz.UI.UIEffectBehaviour)translator.GetObject(L, 2, typeof(Snxxz.UI.UIEffectBehaviour));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_effectPos(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value);
|
gen_to_be_invoked.effectPos = gen_value;
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_effectRot(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value);
|
gen_to_be_invoked.effectRot = gen_value;
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_effectScl(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value);
|
gen_to_be_invoked.effectScl = gen_value;
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_playOnAwake(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.playOnAwake = LuaAPI.lua_toboolean(L, 2);
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_loop(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.loop = LuaAPI.lua_toboolean(L, 2);
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_keep(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.keep = LuaAPI.lua_toboolean(L, 2);
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_OnComplete(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UIEffect gen_to_be_invoked = (UIEffect)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.OnComplete = translator.GetDelegate<System.Action>(L, 2);
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
|
|
|
|
}
|
}
|