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

648 lines
22 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 BFCharacterHelperWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(BF.CharacterHelper);
Utils.BeginObjectRegister(type, L, translator, 0, 14, 6, 3);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetModelObject", _m_GetModelObject);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetModelHashCode", _m_GetModelHashCode);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetListCount", _m_GetListCount);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGameObjectByIndex", _m_GetGameObjectByIndex);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashNameByIndex", _m_GetHashNameByIndex);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheLocalPosition", _m_CacheLocalPosition);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalPosition", _m_SetLocalPosition);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CachePosition", _m_CachePosition);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPosition", _m_SetPosition);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalEulerAngles", _m_SetLocalEulerAngles);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalScale", _m_SetLocalScale);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMainModelLocalPosition", _m_SetMainModelLocalPosition);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetStateTime", _m_GetStateTime);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetStateKeyFrame", _m_GetStateKeyFrame);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionX", _g_get_PositionX);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionY", _g_get_PositionY);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionZ", _g_get_PositionZ);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "modelObject", _g_get_modelObject);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "objectList", _g_get_objectList);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "animationList", _g_get_animationList);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "modelObject", _s_set_modelObject);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "objectList", _s_set_objectList);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "animationList", _s_set_animationList);
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.CharacterHelper();
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.CharacterHelper constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetModelObject(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.GetModelObject( );
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_GetModelHashCode(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.GetModelHashCode( );
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_GetListCount(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)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_GetGameObjectByIndex(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)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_GetHashNameByIndex(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)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_CacheLocalPosition(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
gen_to_be_invoked.CacheLocalPosition( _index );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetLocalPosition(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
float _x = (float)LuaAPI.lua_tonumber(L, 3);
float _y = (float)LuaAPI.lua_tonumber(L, 4);
float _z = (float)LuaAPI.lua_tonumber(L, 5);
gen_to_be_invoked.SetLocalPosition( _index, _x, _y, _z );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_CachePosition(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
gen_to_be_invoked.CachePosition( _index );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetPosition(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
float _x = (float)LuaAPI.lua_tonumber(L, 3);
float _y = (float)LuaAPI.lua_tonumber(L, 4);
float _z = (float)LuaAPI.lua_tonumber(L, 5);
gen_to_be_invoked.SetPosition( _index, _x, _y, _z );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetLocalEulerAngles(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
float _x = (float)LuaAPI.lua_tonumber(L, 3);
float _y = (float)LuaAPI.lua_tonumber(L, 4);
float _z = (float)LuaAPI.lua_tonumber(L, 5);
gen_to_be_invoked.SetLocalEulerAngles( _index, _x, _y, _z );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetLocalScale(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
float _x = (float)LuaAPI.lua_tonumber(L, 3);
float _y = (float)LuaAPI.lua_tonumber(L, 4);
float _z = (float)LuaAPI.lua_tonumber(L, 5);
gen_to_be_invoked.SetLocalScale( _index, _x, _y, _z );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetMainModelLocalPosition(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
{
float _x = (float)LuaAPI.lua_tonumber(L, 2);
float _y = (float)LuaAPI.lua_tonumber(L, 3);
float _z = (float)LuaAPI.lua_tonumber(L, 4);
gen_to_be_invoked.SetMainModelLocalPosition( _x, _y, _z );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetStateTime(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
{
uint _index = LuaAPI.xlua_touint(L, 2);
var gen_ret = gen_to_be_invoked.GetStateTime( _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 _m_GetStateKeyFrame(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
{
uint _hashName = LuaAPI.xlua_touint(L, 2);
int _index = LuaAPI.xlua_tointeger(L, 3);
var gen_ret = gen_to_be_invoked.GetStateKeyFrame( _hashName, _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 _g_get_PositionX(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionX);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_PositionY(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionY);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_PositionZ(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionZ);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_modelObject(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.modelObject);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_objectList(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.objectList);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_animationList(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.animationList);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_modelObject(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.modelObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_objectList(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.objectList = (System.Collections.Generic.List<BF.CharacterObjectInfo>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<BF.CharacterObjectInfo>));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_animationList(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.animationList = (System.Collections.Generic.List<BF.CharacterAnimationInfo>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<BF.CharacterAnimationInfo>));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
}
}