#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 AnyCountDownUtilityWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(AnyCountDownUtility);
|
Utils.BeginObjectRegister(type, L, translator, 0, 2, 2, 2);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Create", _m_Create);
|
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_ActiveList", _g_get_m_ActiveList);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_CacheRemoveList", _g_get_m_CacheRemoveList);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "m_ActiveList", _s_set_m_ActiveList);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "m_CacheRemoveList", _s_set_m_CacheRemoveList);
|
|
|
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)
|
{
|
|
AnyCountDownUtility gen_ret = new AnyCountDownUtility();
|
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 AnyCountDownUtility constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Initialize(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
AnyCountDownUtility gen_to_be_invoked = (AnyCountDownUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.Initialize( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Create(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
AnyCountDownUtility gen_to_be_invoked = (AnyCountDownUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
float _cd = (float)LuaAPI.lua_tonumber(L, 2);
|
GActor _target = (GActor)translator.GetObject(L, 3, typeof(GActor));
|
UnityEngine.Events.UnityAction _callback = translator.GetDelegate<UnityEngine.Events.UnityAction>(L, 4);
|
|
gen_to_be_invoked.Create( _cd, _target, _callback );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_m_ActiveList(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
AnyCountDownUtility gen_to_be_invoked = (AnyCountDownUtility)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.m_ActiveList);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_m_CacheRemoveList(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
AnyCountDownUtility gen_to_be_invoked = (AnyCountDownUtility)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.m_CacheRemoveList);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_m_ActiveList(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
AnyCountDownUtility gen_to_be_invoked = (AnyCountDownUtility)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.m_ActiveList = (System.Collections.Generic.List<AnyCountDownUtility.CDItem>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<AnyCountDownUtility.CDItem>));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_m_CacheRemoveList(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
AnyCountDownUtility gen_to_be_invoked = (AnyCountDownUtility)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.m_CacheRemoveList = (System.Collections.Generic.List<AnyCountDownUtility.CDItem>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<AnyCountDownUtility.CDItem>));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
|
|
|
|
}
|
}
|