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

372 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 UnityEngineBoxcastCommandWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(UnityEngine.BoxcastCommand);
Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 6);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "halfExtents", _g_get_halfExtents);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "orientation", _g_get_orientation);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "direction", _g_get_direction);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "distance", _g_get_distance);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "layerMask", _g_get_layerMask);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "center", _s_set_center);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "halfExtents", _s_set_halfExtents);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "orientation", _s_set_orientation);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "direction", _s_set_direction);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "distance", _s_set_distance);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "layerMask", _s_set_layerMask);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0);
Utils.RegisterFunc(L, Utils.CLS_IDX, "ScheduleBatch", _m_ScheduleBatch_xlua_st_);
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) == 7 && translator.Assignable<UnityEngine.Vector3>(L, 2) && translator.Assignable<UnityEngine.Vector3>(L, 3) && translator.Assignable<UnityEngine.Quaternion>(L, 4) && translator.Assignable<UnityEngine.Vector3>(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7))
{
UnityEngine.Vector3 _center;translator.Get(L, 2, out _center);
UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents);
UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation);
UnityEngine.Vector3 _direction;translator.Get(L, 5, out _direction);
float _distance = (float)LuaAPI.lua_tonumber(L, 6);
int _layerMask = LuaAPI.xlua_tointeger(L, 7);
var gen_ret = new UnityEngine.BoxcastCommand(_center, _halfExtents, _orientation, _direction, _distance, _layerMask);
translator.Push(L, gen_ret);
return 1;
}
if(LuaAPI.lua_gettop(L) == 6 && translator.Assignable<UnityEngine.Vector3>(L, 2) && translator.Assignable<UnityEngine.Vector3>(L, 3) && translator.Assignable<UnityEngine.Quaternion>(L, 4) && translator.Assignable<UnityEngine.Vector3>(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6))
{
UnityEngine.Vector3 _center;translator.Get(L, 2, out _center);
UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents);
UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation);
UnityEngine.Vector3 _direction;translator.Get(L, 5, out _direction);
float _distance = (float)LuaAPI.lua_tonumber(L, 6);
var gen_ret = new UnityEngine.BoxcastCommand(_center, _halfExtents, _orientation, _direction, _distance);
translator.Push(L, gen_ret);
return 1;
}
if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable<UnityEngine.Vector3>(L, 2) && translator.Assignable<UnityEngine.Vector3>(L, 3) && translator.Assignable<UnityEngine.Quaternion>(L, 4) && translator.Assignable<UnityEngine.Vector3>(L, 5))
{
UnityEngine.Vector3 _center;translator.Get(L, 2, out _center);
UnityEngine.Vector3 _halfExtents;translator.Get(L, 3, out _halfExtents);
UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation);
UnityEngine.Vector3 _direction;translator.Get(L, 5, out _direction);
var gen_ret = new UnityEngine.BoxcastCommand(_center, _halfExtents, _orientation, _direction);
translator.Push(L, gen_ret);
return 1;
}
if (LuaAPI.lua_gettop(L) == 1)
{
translator.Push(L, default(UnityEngine.BoxcastCommand));
return 1;
}
}
catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BoxcastCommand constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_ScheduleBatch_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 4&& translator.Assignable<Unity.Collections.NativeArray<UnityEngine.BoxcastCommand>>(L, 1)&& translator.Assignable<Unity.Collections.NativeArray<UnityEngine.RaycastHit>>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<Unity.Jobs.JobHandle>(L, 4))
{
Unity.Collections.NativeArray<UnityEngine.BoxcastCommand> _commands;translator.Get(L, 1, out _commands);
Unity.Collections.NativeArray<UnityEngine.RaycastHit> _results;translator.Get(L, 2, out _results);
int _minCommandsPerJob = LuaAPI.xlua_tointeger(L, 3);
Unity.Jobs.JobHandle _dependsOn;translator.Get(L, 4, out _dependsOn);
var gen_ret = UnityEngine.BoxcastCommand.ScheduleBatch( _commands, _results, _minCommandsPerJob, _dependsOn );
translator.Push(L, gen_ret);
return 1;
}
if(gen_param_count == 3&& translator.Assignable<Unity.Collections.NativeArray<UnityEngine.BoxcastCommand>>(L, 1)&& translator.Assignable<Unity.Collections.NativeArray<UnityEngine.RaycastHit>>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
{
Unity.Collections.NativeArray<UnityEngine.BoxcastCommand> _commands;translator.Get(L, 1, out _commands);
Unity.Collections.NativeArray<UnityEngine.RaycastHit> _results;translator.Get(L, 2, out _results);
int _minCommandsPerJob = LuaAPI.xlua_tointeger(L, 3);
var gen_ret = UnityEngine.BoxcastCommand.ScheduleBatch( _commands, _results, _minCommandsPerJob );
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 UnityEngine.BoxcastCommand.ScheduleBatch!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_center(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
translator.PushUnityEngineVector3(L, gen_to_be_invoked.center);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_halfExtents(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
translator.PushUnityEngineVector3(L, gen_to_be_invoked.halfExtents);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_orientation(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.orientation);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_direction(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
translator.PushUnityEngineVector3(L, gen_to_be_invoked.direction);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_distance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.distance);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_layerMask(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.layerMask);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_center(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.center = gen_value;
translator.Update(L, 1, gen_to_be_invoked);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_halfExtents(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.halfExtents = gen_value;
translator.Update(L, 1, gen_to_be_invoked);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_orientation(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
UnityEngine.Quaternion gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.orientation = gen_value;
translator.Update(L, 1, gen_to_be_invoked);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_direction(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.direction = gen_value;
translator.Update(L, 1, gen_to_be_invoked);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_distance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
gen_to_be_invoked.distance = (float)LuaAPI.lua_tonumber(L, 2);
translator.Update(L, 1, gen_to_be_invoked);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_layerMask(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.BoxcastCommand gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
gen_to_be_invoked.layerMask = LuaAPI.xlua_tointeger(L, 2);
translator.Update(L, 1, gen_to_be_invoked);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
}
}