c1_unity/Assets/XLua/Gen/BF_TimelineHelperWrap.cs
2023-04-03 11:04:31 +08:00

445 lines
15 KiB
C#

#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 BFTimelineHelperWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(BF.TimelineHelper);
Utils.BeginObjectRegister(type, L, translator, 0, 9, 3, 3);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGameObjectByName", _m_GetGameObjectByName);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetListCount", _m_GetListCount);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetObjectTypeByIndex", _m_GetObjectTypeByIndex);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashNameByIndex", _m_GetHashNameByIndex);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGameObjectByIndex", _m_GetGameObjectByIndex);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRootPrefabIndex", _m_GetRootPrefabIndex);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEventListCount", _m_GetEventListCount);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEventHashNameByIndex", _m_GetEventHashNameByIndex);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEventTimeByIndex", _m_GetEventTimeByIndex);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "prefabList", _g_get_prefabList);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "duration", _g_get_duration);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "timelineEventList", _g_get_timelineEventList);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "prefabList", _s_set_prefabList);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "duration", _s_set_duration);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "timelineEventList", _s_set_timelineEventList);
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)
{
var gen_ret = new BF.TimelineHelper();
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 BF.TimelineHelper constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetGameObjectByName(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1);
{
string _name = LuaAPI.lua_tostring(L, 2);
var gen_ret = gen_to_be_invoked.GetGameObjectByName( _name );
translator.Push(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetListCount(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.GetListCount( );
LuaAPI.xlua_pushinteger(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetObjectTypeByIndex(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
var gen_ret = gen_to_be_invoked.GetObjectTypeByIndex( _index );
LuaAPI.xlua_pushinteger(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetHashNameByIndex(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
var gen_ret = gen_to_be_invoked.GetHashNameByIndex( _index );
LuaAPI.xlua_pushuint(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetGameObjectByIndex(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
var gen_ret = gen_to_be_invoked.GetGameObjectByIndex( _index );
translator.Push(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetRootPrefabIndex(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.GetRootPrefabIndex( );
LuaAPI.xlua_pushinteger(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetEventListCount(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.GetEventListCount( );
LuaAPI.xlua_pushinteger(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetEventHashNameByIndex(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
var gen_ret = gen_to_be_invoked.GetEventHashNameByIndex( _index );
LuaAPI.xlua_pushuint(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetEventTimeByIndex(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
var gen_ret = gen_to_be_invoked.GetEventTimeByIndex( _index );
LuaAPI.lua_pushnumber(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_prefabList(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.prefabList);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_duration(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)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_timelineEventList(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.timelineEventList);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_prefabList(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.prefabList = (System.Collections.Generic.List<BF.GameObjectInfo>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<BF.GameObjectInfo>));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_duration(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.duration = LuaAPI.lua_tonumber(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_timelineEventList(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.timelineEventList = (System.Collections.Generic.List<BF.TimelineEventItem>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<BF.TimelineEventItem>));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
}
}