c1_unity/Assets/XLua/Gen/EnumWrap.cs
2025-08-04 18:49:43 +08:00

5685 lines
232 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 AdFormatWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(AdFormat), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(AdFormat), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(AdFormat), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RewardedVideo", AdFormat.RewardedVideo);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Interstitial", AdFormat.Interstitial);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Banner", AdFormat.Banner);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(AdFormat), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushAdFormat(L, (AdFormat)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "RewardedVideo"))
{
translator.PushAdFormat(L, AdFormat.RewardedVideo);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Interstitial"))
{
translator.PushAdFormat(L, AdFormat.Interstitial);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Banner"))
{
translator.PushAdFormat(L, AdFormat.Banner);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for AdFormat!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for AdFormat! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class IronSourceBannerPositionWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(IronSourceBannerPosition), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(IronSourceBannerPosition), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(IronSourceBannerPosition), L, null, 3, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TOP", IronSourceBannerPosition.TOP);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BOTTOM", IronSourceBannerPosition.BOTTOM);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(IronSourceBannerPosition), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushIronSourceBannerPosition(L, (IronSourceBannerPosition)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "TOP"))
{
translator.PushIronSourceBannerPosition(L, IronSourceBannerPosition.TOP);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "BOTTOM"))
{
translator.PushIronSourceBannerPosition(L, IronSourceBannerPosition.BOTTOM);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for IronSourceBannerPosition!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for IronSourceBannerPosition! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UIImageSheetAnimationAnimationTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UIImageSheetAnimation.AnimationType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UIImageSheetAnimation.AnimationType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UIImageSheetAnimation.AnimationType), L, null, 3, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WholeSheet", UIImageSheetAnimation.AnimationType.WholeSheet);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SingleRow", UIImageSheetAnimation.AnimationType.SingleRow);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UIImageSheetAnimation.AnimationType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUIImageSheetAnimationAnimationType(L, (UIImageSheetAnimation.AnimationType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "WholeSheet"))
{
translator.PushUIImageSheetAnimationAnimationType(L, UIImageSheetAnimation.AnimationType.WholeSheet);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "SingleRow"))
{
translator.PushUIImageSheetAnimationAnimationType(L, UIImageSheetAnimation.AnimationType.SingleRow);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UIImageSheetAnimation.AnimationType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UIImageSheetAnimation.AnimationType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UIImageSheetAnimationTimeTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UIImageSheetAnimation.TimeType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UIImageSheetAnimation.TimeType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UIImageSheetAnimation.TimeType), L, null, 3, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LifeTime", UIImageSheetAnimation.TimeType.LifeTime);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FPS", UIImageSheetAnimation.TimeType.FPS);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UIImageSheetAnimation.TimeType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUIImageSheetAnimationTimeType(L, (UIImageSheetAnimation.TimeType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "LifeTime"))
{
translator.PushUIImageSheetAnimationTimeType(L, UIImageSheetAnimation.TimeType.LifeTime);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "FPS"))
{
translator.PushUIImageSheetAnimationTimeType(L, UIImageSheetAnimation.TimeType.FPS);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UIImageSheetAnimation.TimeType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UIImageSheetAnimation.TimeType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UIImageSheetAnimationStartFrameTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UIImageSheetAnimation.StartFrameType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UIImageSheetAnimation.StartFrameType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UIImageSheetAnimation.StartFrameType), L, null, 3, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Constant", UIImageSheetAnimation.StartFrameType.Constant);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RandomBetweenTwoConstants", UIImageSheetAnimation.StartFrameType.RandomBetweenTwoConstants);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UIImageSheetAnimation.StartFrameType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUIImageSheetAnimationStartFrameType(L, (UIImageSheetAnimation.StartFrameType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Constant"))
{
translator.PushUIImageSheetAnimationStartFrameType(L, UIImageSheetAnimation.StartFrameType.Constant);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "RandomBetweenTwoConstants"))
{
translator.PushUIImageSheetAnimationStartFrameType(L, UIImageSheetAnimation.StartFrameType.RandomBetweenTwoConstants);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UIImageSheetAnimation.StartFrameType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UIImageSheetAnimation.StartFrameType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class SystemReflectionBindingFlagsWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(System.Reflection.BindingFlags), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(System.Reflection.BindingFlags), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(System.Reflection.BindingFlags), L, null, 22, 0, 0);
Utils.RegisterEnumType(L, typeof(System.Reflection.BindingFlags));
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(System.Reflection.BindingFlags), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushSystemReflectionBindingFlags(L, (System.Reflection.BindingFlags)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
try
{
translator.TranslateToEnumToTop(L, typeof(System.Reflection.BindingFlags), 1);
}
catch (System.Exception e)
{
return LuaAPI.luaL_error(L, "cast to " + typeof(System.Reflection.BindingFlags) + " exception:" + e);
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for System.Reflection.BindingFlags! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class SystemDayOfWeekWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(System.DayOfWeek), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(System.DayOfWeek), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(System.DayOfWeek), L, null, 8, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Sunday", System.DayOfWeek.Sunday);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Monday", System.DayOfWeek.Monday);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Tuesday", System.DayOfWeek.Tuesday);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Wednesday", System.DayOfWeek.Wednesday);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Thursday", System.DayOfWeek.Thursday);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Friday", System.DayOfWeek.Friday);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Saturday", System.DayOfWeek.Saturday);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(System.DayOfWeek), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushSystemDayOfWeek(L, (System.DayOfWeek)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Sunday"))
{
translator.PushSystemDayOfWeek(L, System.DayOfWeek.Sunday);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Monday"))
{
translator.PushSystemDayOfWeek(L, System.DayOfWeek.Monday);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Tuesday"))
{
translator.PushSystemDayOfWeek(L, System.DayOfWeek.Tuesday);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Wednesday"))
{
translator.PushSystemDayOfWeek(L, System.DayOfWeek.Wednesday);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Thursday"))
{
translator.PushSystemDayOfWeek(L, System.DayOfWeek.Thursday);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Friday"))
{
translator.PushSystemDayOfWeek(L, System.DayOfWeek.Friday);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Saturday"))
{
translator.PushSystemDayOfWeek(L, System.DayOfWeek.Saturday);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for System.DayOfWeek!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for System.DayOfWeek! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class SystemNetNetworkInformationIPStatusWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(System.Net.NetworkInformation.IPStatus), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(System.Net.NetworkInformation.IPStatus), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(System.Net.NetworkInformation.IPStatus), L, null, 25, 0, 0);
Utils.RegisterEnumType(L, typeof(System.Net.NetworkInformation.IPStatus));
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(System.Net.NetworkInformation.IPStatus), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushSystemNetNetworkInformationIPStatus(L, (System.Net.NetworkInformation.IPStatus)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
try
{
translator.TranslateToEnumToTop(L, typeof(System.Net.NetworkInformation.IPStatus), 1);
}
catch (System.Exception e)
{
return LuaAPI.luaL_error(L, "cast to " + typeof(System.Net.NetworkInformation.IPStatus) + " exception:" + e);
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for System.Net.NetworkInformation.IPStatus! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineCameraGateFitModeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.Camera.GateFitMode), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.Camera.GateFitMode), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.Camera.GateFitMode), L, null, 6, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Vertical", UnityEngine.Camera.GateFitMode.Vertical);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Horizontal", UnityEngine.Camera.GateFitMode.Horizontal);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Fill", UnityEngine.Camera.GateFitMode.Fill);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Overscan", UnityEngine.Camera.GateFitMode.Overscan);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", UnityEngine.Camera.GateFitMode.None);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.Camera.GateFitMode), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineCameraGateFitMode(L, (UnityEngine.Camera.GateFitMode)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Vertical"))
{
translator.PushUnityEngineCameraGateFitMode(L, UnityEngine.Camera.GateFitMode.Vertical);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Horizontal"))
{
translator.PushUnityEngineCameraGateFitMode(L, UnityEngine.Camera.GateFitMode.Horizontal);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Fill"))
{
translator.PushUnityEngineCameraGateFitMode(L, UnityEngine.Camera.GateFitMode.Fill);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Overscan"))
{
translator.PushUnityEngineCameraGateFitMode(L, UnityEngine.Camera.GateFitMode.Overscan);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "None"))
{
translator.PushUnityEngineCameraGateFitMode(L, UnityEngine.Camera.GateFitMode.None);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Camera.GateFitMode!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Camera.GateFitMode! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineCameraStereoscopicEyeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.Camera.StereoscopicEye), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.Camera.StereoscopicEye), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.Camera.StereoscopicEye), L, null, 3, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.Camera.StereoscopicEye.Left);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.Camera.StereoscopicEye.Right);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.Camera.StereoscopicEye), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineCameraStereoscopicEye(L, (UnityEngine.Camera.StereoscopicEye)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Left"))
{
translator.PushUnityEngineCameraStereoscopicEye(L, UnityEngine.Camera.StereoscopicEye.Left);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Right"))
{
translator.PushUnityEngineCameraStereoscopicEye(L, UnityEngine.Camera.StereoscopicEye.Right);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Camera.StereoscopicEye!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Camera.StereoscopicEye! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineCameraMonoOrStereoscopicEyeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.Camera.MonoOrStereoscopicEye), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.Camera.MonoOrStereoscopicEye), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.Camera.MonoOrStereoscopicEye), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.Camera.MonoOrStereoscopicEye.Left);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.Camera.MonoOrStereoscopicEye.Right);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Mono", UnityEngine.Camera.MonoOrStereoscopicEye.Mono);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.Camera.MonoOrStereoscopicEye), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineCameraMonoOrStereoscopicEye(L, (UnityEngine.Camera.MonoOrStereoscopicEye)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Left"))
{
translator.PushUnityEngineCameraMonoOrStereoscopicEye(L, UnityEngine.Camera.MonoOrStereoscopicEye.Left);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Right"))
{
translator.PushUnityEngineCameraMonoOrStereoscopicEye(L, UnityEngine.Camera.MonoOrStereoscopicEye.Right);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Mono"))
{
translator.PushUnityEngineCameraMonoOrStereoscopicEye(L, UnityEngine.Camera.MonoOrStereoscopicEye.Mono);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Camera.MonoOrStereoscopicEye!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Camera.MonoOrStereoscopicEye! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineCameraFieldOfViewAxisWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.Camera.FieldOfViewAxis), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.Camera.FieldOfViewAxis), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.Camera.FieldOfViewAxis), L, null, 3, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Vertical", UnityEngine.Camera.FieldOfViewAxis.Vertical);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Horizontal", UnityEngine.Camera.FieldOfViewAxis.Horizontal);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.Camera.FieldOfViewAxis), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineCameraFieldOfViewAxis(L, (UnityEngine.Camera.FieldOfViewAxis)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Vertical"))
{
translator.PushUnityEngineCameraFieldOfViewAxis(L, UnityEngine.Camera.FieldOfViewAxis.Vertical);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Horizontal"))
{
translator.PushUnityEngineCameraFieldOfViewAxis(L, UnityEngine.Camera.FieldOfViewAxis.Horizontal);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Camera.FieldOfViewAxis!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Camera.FieldOfViewAxis! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineCameraRenderRequestModeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.Camera.RenderRequestMode), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.Camera.RenderRequestMode), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.Camera.RenderRequestMode), L, null, 15, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", UnityEngine.Camera.RenderRequestMode.None);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ObjectId", UnityEngine.Camera.RenderRequestMode.ObjectId);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Depth", UnityEngine.Camera.RenderRequestMode.Depth);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "VertexNormal", UnityEngine.Camera.RenderRequestMode.VertexNormal);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WorldPosition", UnityEngine.Camera.RenderRequestMode.WorldPosition);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EntityId", UnityEngine.Camera.RenderRequestMode.EntityId);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BaseColor", UnityEngine.Camera.RenderRequestMode.BaseColor);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SpecularColor", UnityEngine.Camera.RenderRequestMode.SpecularColor);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Metallic", UnityEngine.Camera.RenderRequestMode.Metallic);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Emission", UnityEngine.Camera.RenderRequestMode.Emission);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Normal", UnityEngine.Camera.RenderRequestMode.Normal);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Smoothness", UnityEngine.Camera.RenderRequestMode.Smoothness);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Occlusion", UnityEngine.Camera.RenderRequestMode.Occlusion);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DiffuseColor", UnityEngine.Camera.RenderRequestMode.DiffuseColor);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.Camera.RenderRequestMode), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineCameraRenderRequestMode(L, (UnityEngine.Camera.RenderRequestMode)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "None"))
{
translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.None);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "ObjectId"))
{
translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.ObjectId);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Depth"))
{
translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.Depth);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "VertexNormal"))
{
translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.VertexNormal);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "WorldPosition"))
{
translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.WorldPosition);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "EntityId"))
{
translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.EntityId);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "BaseColor"))
{
translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.BaseColor);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "SpecularColor"))
{
translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.SpecularColor);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Metallic"))
{
translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.Metallic);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Emission"))
{
translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.Emission);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Normal"))
{
translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.Normal);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Smoothness"))
{
translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.Smoothness);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Occlusion"))
{
translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.Occlusion);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "DiffuseColor"))
{
translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.DiffuseColor);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Camera.RenderRequestMode!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Camera.RenderRequestMode! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineCameraRenderRequestOutputSpaceWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.Camera.RenderRequestOutputSpace), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.Camera.RenderRequestOutputSpace), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.Camera.RenderRequestOutputSpace), L, null, 11, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ScreenSpace", UnityEngine.Camera.RenderRequestOutputSpace.ScreenSpace);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UV0", UnityEngine.Camera.RenderRequestOutputSpace.UV0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UV1", UnityEngine.Camera.RenderRequestOutputSpace.UV1);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UV2", UnityEngine.Camera.RenderRequestOutputSpace.UV2);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UV3", UnityEngine.Camera.RenderRequestOutputSpace.UV3);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UV4", UnityEngine.Camera.RenderRequestOutputSpace.UV4);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UV5", UnityEngine.Camera.RenderRequestOutputSpace.UV5);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UV6", UnityEngine.Camera.RenderRequestOutputSpace.UV6);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UV7", UnityEngine.Camera.RenderRequestOutputSpace.UV7);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UV8", UnityEngine.Camera.RenderRequestOutputSpace.UV8);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.Camera.RenderRequestOutputSpace), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineCameraRenderRequestOutputSpace(L, (UnityEngine.Camera.RenderRequestOutputSpace)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "ScreenSpace"))
{
translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.ScreenSpace);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "UV0"))
{
translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.UV0);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "UV1"))
{
translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.UV1);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "UV2"))
{
translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.UV2);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "UV3"))
{
translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.UV3);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "UV4"))
{
translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.UV4);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "UV5"))
{
translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.UV5);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "UV6"))
{
translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.UV6);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "UV7"))
{
translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.UV7);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "UV8"))
{
translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.UV8);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Camera.RenderRequestOutputSpace!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Camera.RenderRequestOutputSpace! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineCameraSceneViewFilterModeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.Camera.SceneViewFilterMode), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.Camera.SceneViewFilterMode), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.Camera.SceneViewFilterMode), L, null, 3, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Off", UnityEngine.Camera.SceneViewFilterMode.Off);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ShowFiltered", UnityEngine.Camera.SceneViewFilterMode.ShowFiltered);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.Camera.SceneViewFilterMode), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineCameraSceneViewFilterMode(L, (UnityEngine.Camera.SceneViewFilterMode)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Off"))
{
translator.PushUnityEngineCameraSceneViewFilterMode(L, UnityEngine.Camera.SceneViewFilterMode.Off);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "ShowFiltered"))
{
translator.PushUnityEngineCameraSceneViewFilterMode(L, UnityEngine.Camera.SceneViewFilterMode.ShowFiltered);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Camera.SceneViewFilterMode!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Camera.SceneViewFilterMode! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineRenderingLightShadowResolutionWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.Rendering.LightShadowResolution), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.Rendering.LightShadowResolution), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.Rendering.LightShadowResolution), L, null, 6, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FromQualitySettings", UnityEngine.Rendering.LightShadowResolution.FromQualitySettings);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Low", UnityEngine.Rendering.LightShadowResolution.Low);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Medium", UnityEngine.Rendering.LightShadowResolution.Medium);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "High", UnityEngine.Rendering.LightShadowResolution.High);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "VeryHigh", UnityEngine.Rendering.LightShadowResolution.VeryHigh);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.Rendering.LightShadowResolution), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineRenderingLightShadowResolution(L, (UnityEngine.Rendering.LightShadowResolution)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "FromQualitySettings"))
{
translator.PushUnityEngineRenderingLightShadowResolution(L, UnityEngine.Rendering.LightShadowResolution.FromQualitySettings);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Low"))
{
translator.PushUnityEngineRenderingLightShadowResolution(L, UnityEngine.Rendering.LightShadowResolution.Low);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Medium"))
{
translator.PushUnityEngineRenderingLightShadowResolution(L, UnityEngine.Rendering.LightShadowResolution.Medium);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "High"))
{
translator.PushUnityEngineRenderingLightShadowResolution(L, UnityEngine.Rendering.LightShadowResolution.High);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "VeryHigh"))
{
translator.PushUnityEngineRenderingLightShadowResolution(L, UnityEngine.Rendering.LightShadowResolution.VeryHigh);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Rendering.LightShadowResolution!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Rendering.LightShadowResolution! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineRenderTextureFormatWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.RenderTextureFormat), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.RenderTextureFormat), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.RenderTextureFormat), L, null, 29, 0, 0);
Utils.RegisterEnumType(L, typeof(UnityEngine.RenderTextureFormat));
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.RenderTextureFormat), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineRenderTextureFormat(L, (UnityEngine.RenderTextureFormat)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
try
{
translator.TranslateToEnumToTop(L, typeof(UnityEngine.RenderTextureFormat), 1);
}
catch (System.Exception e)
{
return LuaAPI.luaL_error(L, "cast to " + typeof(UnityEngine.RenderTextureFormat) + " exception:" + e);
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.RenderTextureFormat! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineRenderTextureReadWriteWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.RenderTextureReadWrite), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.RenderTextureReadWrite), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.RenderTextureReadWrite), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Default", UnityEngine.RenderTextureReadWrite.Default);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Linear", UnityEngine.RenderTextureReadWrite.Linear);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "sRGB", UnityEngine.RenderTextureReadWrite.sRGB);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.RenderTextureReadWrite), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineRenderTextureReadWrite(L, (UnityEngine.RenderTextureReadWrite)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Default"))
{
translator.PushUnityEngineRenderTextureReadWrite(L, UnityEngine.RenderTextureReadWrite.Default);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Linear"))
{
translator.PushUnityEngineRenderTextureReadWrite(L, UnityEngine.RenderTextureReadWrite.Linear);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "sRGB"))
{
translator.PushUnityEngineRenderTextureReadWrite(L, UnityEngine.RenderTextureReadWrite.sRGB);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.RenderTextureReadWrite!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.RenderTextureReadWrite! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineRigidbodyConstraintsWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.RigidbodyConstraints), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.RigidbodyConstraints), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.RigidbodyConstraints), L, null, 11, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", UnityEngine.RigidbodyConstraints.None);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FreezePositionX", UnityEngine.RigidbodyConstraints.FreezePositionX);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FreezePositionY", UnityEngine.RigidbodyConstraints.FreezePositionY);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FreezePositionZ", UnityEngine.RigidbodyConstraints.FreezePositionZ);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FreezeRotationX", UnityEngine.RigidbodyConstraints.FreezeRotationX);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FreezeRotationY", UnityEngine.RigidbodyConstraints.FreezeRotationY);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FreezeRotationZ", UnityEngine.RigidbodyConstraints.FreezeRotationZ);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FreezePosition", UnityEngine.RigidbodyConstraints.FreezePosition);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FreezeRotation", UnityEngine.RigidbodyConstraints.FreezeRotation);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FreezeAll", UnityEngine.RigidbodyConstraints.FreezeAll);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.RigidbodyConstraints), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineRigidbodyConstraints(L, (UnityEngine.RigidbodyConstraints)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "None"))
{
translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.None);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "FreezePositionX"))
{
translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.FreezePositionX);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "FreezePositionY"))
{
translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.FreezePositionY);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "FreezePositionZ"))
{
translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.FreezePositionZ);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "FreezeRotationX"))
{
translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.FreezeRotationX);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "FreezeRotationY"))
{
translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.FreezeRotationY);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "FreezeRotationZ"))
{
translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.FreezeRotationZ);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "FreezePosition"))
{
translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.FreezePosition);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "FreezeRotation"))
{
translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.FreezeRotation);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "FreezeAll"))
{
translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.FreezeAll);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.RigidbodyConstraints!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.RigidbodyConstraints! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineTransparencySortModeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.TransparencySortMode), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.TransparencySortMode), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.TransparencySortMode), L, null, 5, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Default", UnityEngine.TransparencySortMode.Default);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Perspective", UnityEngine.TransparencySortMode.Perspective);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Orthographic", UnityEngine.TransparencySortMode.Orthographic);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CustomAxis", UnityEngine.TransparencySortMode.CustomAxis);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.TransparencySortMode), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineTransparencySortMode(L, (UnityEngine.TransparencySortMode)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Default"))
{
translator.PushUnityEngineTransparencySortMode(L, UnityEngine.TransparencySortMode.Default);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Perspective"))
{
translator.PushUnityEngineTransparencySortMode(L, UnityEngine.TransparencySortMode.Perspective);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Orthographic"))
{
translator.PushUnityEngineTransparencySortMode(L, UnityEngine.TransparencySortMode.Orthographic);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "CustomAxis"))
{
translator.PushUnityEngineTransparencySortMode(L, UnityEngine.TransparencySortMode.CustomAxis);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.TransparencySortMode!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.TransparencySortMode! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineRectTransformAxisWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.RectTransform.Axis), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.RectTransform.Axis), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.RectTransform.Axis), L, null, 3, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Horizontal", UnityEngine.RectTransform.Axis.Horizontal);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Vertical", UnityEngine.RectTransform.Axis.Vertical);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.RectTransform.Axis), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineRectTransformAxis(L, (UnityEngine.RectTransform.Axis)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Horizontal"))
{
translator.PushUnityEngineRectTransformAxis(L, UnityEngine.RectTransform.Axis.Horizontal);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Vertical"))
{
translator.PushUnityEngineRectTransformAxis(L, UnityEngine.RectTransform.Axis.Vertical);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.RectTransform.Axis!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.RectTransform.Axis! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineRectTransformEdgeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.RectTransform.Edge), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.RectTransform.Edge), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.RectTransform.Edge), L, null, 5, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.RectTransform.Edge.Left);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.RectTransform.Edge.Right);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Top", UnityEngine.RectTransform.Edge.Top);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Bottom", UnityEngine.RectTransform.Edge.Bottom);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.RectTransform.Edge), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineRectTransformEdge(L, (UnityEngine.RectTransform.Edge)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Left"))
{
translator.PushUnityEngineRectTransformEdge(L, UnityEngine.RectTransform.Edge.Left);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Right"))
{
translator.PushUnityEngineRectTransformEdge(L, UnityEngine.RectTransform.Edge.Right);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Top"))
{
translator.PushUnityEngineRectTransformEdge(L, UnityEngine.RectTransform.Edge.Top);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Bottom"))
{
translator.PushUnityEngineRectTransformEdge(L, UnityEngine.RectTransform.Edge.Bottom);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.RectTransform.Edge!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.RectTransform.Edge! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineAnimatorCullingModeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.AnimatorCullingMode), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.AnimatorCullingMode), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.AnimatorCullingMode), L, null, 5, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AlwaysAnimate", UnityEngine.AnimatorCullingMode.AlwaysAnimate);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CullUpdateTransforms", UnityEngine.AnimatorCullingMode.CullUpdateTransforms);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CullCompletely", UnityEngine.AnimatorCullingMode.CullCompletely);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.AnimatorCullingMode), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineAnimatorCullingMode(L, (UnityEngine.AnimatorCullingMode)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "AlwaysAnimate"))
{
translator.PushUnityEngineAnimatorCullingMode(L, UnityEngine.AnimatorCullingMode.AlwaysAnimate);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "CullUpdateTransforms"))
{
translator.PushUnityEngineAnimatorCullingMode(L, UnityEngine.AnimatorCullingMode.CullUpdateTransforms);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "CullCompletely"))
{
translator.PushUnityEngineAnimatorCullingMode(L, UnityEngine.AnimatorCullingMode.CullCompletely);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.AnimatorCullingMode!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.AnimatorCullingMode! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineSystemLanguageWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.SystemLanguage), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.SystemLanguage), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.SystemLanguage), L, null, 45, 0, 0);
Utils.RegisterEnumType(L, typeof(UnityEngine.SystemLanguage));
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.SystemLanguage), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineSystemLanguage(L, (UnityEngine.SystemLanguage)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
try
{
translator.TranslateToEnumToTop(L, typeof(UnityEngine.SystemLanguage), 1);
}
catch (System.Exception e)
{
return LuaAPI.luaL_error(L, "cast to " + typeof(UnityEngine.SystemLanguage) + " exception:" + e);
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.SystemLanguage! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineRenderingShadowCastingModeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.Rendering.ShadowCastingMode), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.Rendering.ShadowCastingMode), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.Rendering.ShadowCastingMode), L, null, 5, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Off", UnityEngine.Rendering.ShadowCastingMode.Off);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "On", UnityEngine.Rendering.ShadowCastingMode.On);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TwoSided", UnityEngine.Rendering.ShadowCastingMode.TwoSided);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ShadowsOnly", UnityEngine.Rendering.ShadowCastingMode.ShadowsOnly);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.Rendering.ShadowCastingMode), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineRenderingShadowCastingMode(L, (UnityEngine.Rendering.ShadowCastingMode)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Off"))
{
translator.PushUnityEngineRenderingShadowCastingMode(L, UnityEngine.Rendering.ShadowCastingMode.Off);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "On"))
{
translator.PushUnityEngineRenderingShadowCastingMode(L, UnityEngine.Rendering.ShadowCastingMode.On);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "TwoSided"))
{
translator.PushUnityEngineRenderingShadowCastingMode(L, UnityEngine.Rendering.ShadowCastingMode.TwoSided);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "ShadowsOnly"))
{
translator.PushUnityEngineRenderingShadowCastingMode(L, UnityEngine.Rendering.ShadowCastingMode.ShadowsOnly);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Rendering.ShadowCastingMode!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Rendering.ShadowCastingMode! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineTexture2DEXRFlagsWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.Texture2D.EXRFlags), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.Texture2D.EXRFlags), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.Texture2D.EXRFlags), L, null, 6, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", UnityEngine.Texture2D.EXRFlags.None);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OutputAsFloat", UnityEngine.Texture2D.EXRFlags.OutputAsFloat);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CompressZIP", UnityEngine.Texture2D.EXRFlags.CompressZIP);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CompressRLE", UnityEngine.Texture2D.EXRFlags.CompressRLE);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CompressPIZ", UnityEngine.Texture2D.EXRFlags.CompressPIZ);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.Texture2D.EXRFlags), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineTexture2DEXRFlags(L, (UnityEngine.Texture2D.EXRFlags)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "None"))
{
translator.PushUnityEngineTexture2DEXRFlags(L, UnityEngine.Texture2D.EXRFlags.None);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "OutputAsFloat"))
{
translator.PushUnityEngineTexture2DEXRFlags(L, UnityEngine.Texture2D.EXRFlags.OutputAsFloat);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "CompressZIP"))
{
translator.PushUnityEngineTexture2DEXRFlags(L, UnityEngine.Texture2D.EXRFlags.CompressZIP);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "CompressRLE"))
{
translator.PushUnityEngineTexture2DEXRFlags(L, UnityEngine.Texture2D.EXRFlags.CompressRLE);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "CompressPIZ"))
{
translator.PushUnityEngineTexture2DEXRFlags(L, UnityEngine.Texture2D.EXRFlags.CompressPIZ);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Texture2D.EXRFlags!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Texture2D.EXRFlags! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineKeyCodeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.KeyCode), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.KeyCode), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.KeyCode), L, null, 329, 0, 0);
Utils.RegisterEnumType(L, typeof(UnityEngine.KeyCode));
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.KeyCode), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineKeyCode(L, (UnityEngine.KeyCode)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
try
{
translator.TranslateToEnumToTop(L, typeof(UnityEngine.KeyCode), 1);
}
catch (System.Exception e)
{
return LuaAPI.luaL_error(L, "cast to " + typeof(UnityEngine.KeyCode) + " exception:" + e);
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.KeyCode! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineNetworkReachabilityWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.NetworkReachability), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.NetworkReachability), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.NetworkReachability), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NotReachable", UnityEngine.NetworkReachability.NotReachable);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ReachableViaCarrierDataNetwork", UnityEngine.NetworkReachability.ReachableViaCarrierDataNetwork);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ReachableViaLocalAreaNetwork", UnityEngine.NetworkReachability.ReachableViaLocalAreaNetwork);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.NetworkReachability), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineNetworkReachability(L, (UnityEngine.NetworkReachability)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "NotReachable"))
{
translator.PushUnityEngineNetworkReachability(L, UnityEngine.NetworkReachability.NotReachable);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "ReachableViaCarrierDataNetwork"))
{
translator.PushUnityEngineNetworkReachability(L, UnityEngine.NetworkReachability.ReachableViaCarrierDataNetwork);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "ReachableViaLocalAreaNetwork"))
{
translator.PushUnityEngineNetworkReachability(L, UnityEngine.NetworkReachability.ReachableViaLocalAreaNetwork);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.NetworkReachability!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.NetworkReachability! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineRuntimePlatformWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.RuntimePlatform), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.RuntimePlatform), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.RuntimePlatform), L, null, 49, 0, 0);
Utils.RegisterEnumType(L, typeof(UnityEngine.RuntimePlatform));
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.RuntimePlatform), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineRuntimePlatform(L, (UnityEngine.RuntimePlatform)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
try
{
translator.TranslateToEnumToTop(L, typeof(UnityEngine.RuntimePlatform), 1);
}
catch (System.Exception e)
{
return LuaAPI.luaL_error(L, "cast to " + typeof(UnityEngine.RuntimePlatform) + " exception:" + e);
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.RuntimePlatform! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineRenderingCompareFunctionWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.Rendering.CompareFunction), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.Rendering.CompareFunction), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.Rendering.CompareFunction), L, null, 10, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Disabled", UnityEngine.Rendering.CompareFunction.Disabled);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Never", UnityEngine.Rendering.CompareFunction.Never);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Less", UnityEngine.Rendering.CompareFunction.Less);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Equal", UnityEngine.Rendering.CompareFunction.Equal);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LessEqual", UnityEngine.Rendering.CompareFunction.LessEqual);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Greater", UnityEngine.Rendering.CompareFunction.Greater);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NotEqual", UnityEngine.Rendering.CompareFunction.NotEqual);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GreaterEqual", UnityEngine.Rendering.CompareFunction.GreaterEqual);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Always", UnityEngine.Rendering.CompareFunction.Always);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.Rendering.CompareFunction), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineRenderingCompareFunction(L, (UnityEngine.Rendering.CompareFunction)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Disabled"))
{
translator.PushUnityEngineRenderingCompareFunction(L, UnityEngine.Rendering.CompareFunction.Disabled);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Never"))
{
translator.PushUnityEngineRenderingCompareFunction(L, UnityEngine.Rendering.CompareFunction.Never);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Less"))
{
translator.PushUnityEngineRenderingCompareFunction(L, UnityEngine.Rendering.CompareFunction.Less);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Equal"))
{
translator.PushUnityEngineRenderingCompareFunction(L, UnityEngine.Rendering.CompareFunction.Equal);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "LessEqual"))
{
translator.PushUnityEngineRenderingCompareFunction(L, UnityEngine.Rendering.CompareFunction.LessEqual);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Greater"))
{
translator.PushUnityEngineRenderingCompareFunction(L, UnityEngine.Rendering.CompareFunction.Greater);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "NotEqual"))
{
translator.PushUnityEngineRenderingCompareFunction(L, UnityEngine.Rendering.CompareFunction.NotEqual);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "GreaterEqual"))
{
translator.PushUnityEngineRenderingCompareFunction(L, UnityEngine.Rendering.CompareFunction.GreaterEqual);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Always"))
{
translator.PushUnityEngineRenderingCompareFunction(L, UnityEngine.Rendering.CompareFunction.Always);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Rendering.CompareFunction!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Rendering.CompareFunction! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineTextAnchorWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.TextAnchor), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.TextAnchor), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.TextAnchor), L, null, 10, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UpperLeft", UnityEngine.TextAnchor.UpperLeft);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UpperCenter", UnityEngine.TextAnchor.UpperCenter);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UpperRight", UnityEngine.TextAnchor.UpperRight);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MiddleLeft", UnityEngine.TextAnchor.MiddleLeft);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MiddleCenter", UnityEngine.TextAnchor.MiddleCenter);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MiddleRight", UnityEngine.TextAnchor.MiddleRight);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LowerLeft", UnityEngine.TextAnchor.LowerLeft);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LowerCenter", UnityEngine.TextAnchor.LowerCenter);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LowerRight", UnityEngine.TextAnchor.LowerRight);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.TextAnchor), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineTextAnchor(L, (UnityEngine.TextAnchor)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "UpperLeft"))
{
translator.PushUnityEngineTextAnchor(L, UnityEngine.TextAnchor.UpperLeft);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "UpperCenter"))
{
translator.PushUnityEngineTextAnchor(L, UnityEngine.TextAnchor.UpperCenter);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "UpperRight"))
{
translator.PushUnityEngineTextAnchor(L, UnityEngine.TextAnchor.UpperRight);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "MiddleLeft"))
{
translator.PushUnityEngineTextAnchor(L, UnityEngine.TextAnchor.MiddleLeft);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "MiddleCenter"))
{
translator.PushUnityEngineTextAnchor(L, UnityEngine.TextAnchor.MiddleCenter);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "MiddleRight"))
{
translator.PushUnityEngineTextAnchor(L, UnityEngine.TextAnchor.MiddleRight);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "LowerLeft"))
{
translator.PushUnityEngineTextAnchor(L, UnityEngine.TextAnchor.LowerLeft);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "LowerCenter"))
{
translator.PushUnityEngineTextAnchor(L, UnityEngine.TextAnchor.LowerCenter);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "LowerRight"))
{
translator.PushUnityEngineTextAnchor(L, UnityEngine.TextAnchor.LowerRight);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.TextAnchor!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.TextAnchor! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineBatteryStatusWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.BatteryStatus), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.BatteryStatus), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.BatteryStatus), L, null, 6, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Unknown", UnityEngine.BatteryStatus.Unknown);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Charging", UnityEngine.BatteryStatus.Charging);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Discharging", UnityEngine.BatteryStatus.Discharging);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NotCharging", UnityEngine.BatteryStatus.NotCharging);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Full", UnityEngine.BatteryStatus.Full);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.BatteryStatus), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineBatteryStatus(L, (UnityEngine.BatteryStatus)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Unknown"))
{
translator.PushUnityEngineBatteryStatus(L, UnityEngine.BatteryStatus.Unknown);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Charging"))
{
translator.PushUnityEngineBatteryStatus(L, UnityEngine.BatteryStatus.Charging);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Discharging"))
{
translator.PushUnityEngineBatteryStatus(L, UnityEngine.BatteryStatus.Discharging);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "NotCharging"))
{
translator.PushUnityEngineBatteryStatus(L, UnityEngine.BatteryStatus.NotCharging);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Full"))
{
translator.PushUnityEngineBatteryStatus(L, UnityEngine.BatteryStatus.Full);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.BatteryStatus!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.BatteryStatus! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUIGraphicRaycasterBlockingObjectsWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects), L, null, 5, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", UnityEngine.UI.GraphicRaycaster.BlockingObjects.None);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TwoD", UnityEngine.UI.GraphicRaycaster.BlockingObjects.TwoD);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ThreeD", UnityEngine.UI.GraphicRaycaster.BlockingObjects.ThreeD);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "All", UnityEngine.UI.GraphicRaycaster.BlockingObjects.All);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUIGraphicRaycasterBlockingObjects(L, (UnityEngine.UI.GraphicRaycaster.BlockingObjects)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "None"))
{
translator.PushUnityEngineUIGraphicRaycasterBlockingObjects(L, UnityEngine.UI.GraphicRaycaster.BlockingObjects.None);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "TwoD"))
{
translator.PushUnityEngineUIGraphicRaycasterBlockingObjects(L, UnityEngine.UI.GraphicRaycaster.BlockingObjects.TwoD);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "ThreeD"))
{
translator.PushUnityEngineUIGraphicRaycasterBlockingObjects(L, UnityEngine.UI.GraphicRaycaster.BlockingObjects.ThreeD);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "All"))
{
translator.PushUnityEngineUIGraphicRaycasterBlockingObjects(L, UnityEngine.UI.GraphicRaycaster.BlockingObjects.All);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.GraphicRaycaster.BlockingObjects!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.GraphicRaycaster.BlockingObjects! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUIImageTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.Type), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.Type), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.Type), L, null, 5, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Simple", UnityEngine.UI.Image.Type.Simple);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Sliced", UnityEngine.UI.Image.Type.Sliced);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Tiled", UnityEngine.UI.Image.Type.Tiled);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Filled", UnityEngine.UI.Image.Type.Filled);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.Image.Type), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUIImageType(L, (UnityEngine.UI.Image.Type)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Simple"))
{
translator.PushUnityEngineUIImageType(L, UnityEngine.UI.Image.Type.Simple);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Sliced"))
{
translator.PushUnityEngineUIImageType(L, UnityEngine.UI.Image.Type.Sliced);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Tiled"))
{
translator.PushUnityEngineUIImageType(L, UnityEngine.UI.Image.Type.Tiled);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Filled"))
{
translator.PushUnityEngineUIImageType(L, UnityEngine.UI.Image.Type.Filled);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.Type!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.Type! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUIImageFillMethodWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.FillMethod), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.FillMethod), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.FillMethod), L, null, 6, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Horizontal", UnityEngine.UI.Image.FillMethod.Horizontal);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Vertical", UnityEngine.UI.Image.FillMethod.Vertical);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Radial90", UnityEngine.UI.Image.FillMethod.Radial90);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Radial180", UnityEngine.UI.Image.FillMethod.Radial180);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Radial360", UnityEngine.UI.Image.FillMethod.Radial360);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.Image.FillMethod), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUIImageFillMethod(L, (UnityEngine.UI.Image.FillMethod)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Horizontal"))
{
translator.PushUnityEngineUIImageFillMethod(L, UnityEngine.UI.Image.FillMethod.Horizontal);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Vertical"))
{
translator.PushUnityEngineUIImageFillMethod(L, UnityEngine.UI.Image.FillMethod.Vertical);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Radial90"))
{
translator.PushUnityEngineUIImageFillMethod(L, UnityEngine.UI.Image.FillMethod.Radial90);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Radial180"))
{
translator.PushUnityEngineUIImageFillMethod(L, UnityEngine.UI.Image.FillMethod.Radial180);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Radial360"))
{
translator.PushUnityEngineUIImageFillMethod(L, UnityEngine.UI.Image.FillMethod.Radial360);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.FillMethod!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.FillMethod! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUIImageOriginHorizontalWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.OriginHorizontal), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.OriginHorizontal), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.OriginHorizontal), L, null, 3, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.UI.Image.OriginHorizontal.Left);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.UI.Image.OriginHorizontal.Right);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.Image.OriginHorizontal), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUIImageOriginHorizontal(L, (UnityEngine.UI.Image.OriginHorizontal)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Left"))
{
translator.PushUnityEngineUIImageOriginHorizontal(L, UnityEngine.UI.Image.OriginHorizontal.Left);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Right"))
{
translator.PushUnityEngineUIImageOriginHorizontal(L, UnityEngine.UI.Image.OriginHorizontal.Right);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.OriginHorizontal!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.OriginHorizontal! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUIImageOriginVerticalWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.OriginVertical), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.OriginVertical), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.OriginVertical), L, null, 3, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Bottom", UnityEngine.UI.Image.OriginVertical.Bottom);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Top", UnityEngine.UI.Image.OriginVertical.Top);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.Image.OriginVertical), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUIImageOriginVertical(L, (UnityEngine.UI.Image.OriginVertical)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Bottom"))
{
translator.PushUnityEngineUIImageOriginVertical(L, UnityEngine.UI.Image.OriginVertical.Bottom);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Top"))
{
translator.PushUnityEngineUIImageOriginVertical(L, UnityEngine.UI.Image.OriginVertical.Top);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.OriginVertical!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.OriginVertical! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUIImageOrigin90Wrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.Origin90), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.Origin90), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.Origin90), L, null, 5, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BottomLeft", UnityEngine.UI.Image.Origin90.BottomLeft);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TopLeft", UnityEngine.UI.Image.Origin90.TopLeft);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TopRight", UnityEngine.UI.Image.Origin90.TopRight);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BottomRight", UnityEngine.UI.Image.Origin90.BottomRight);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.Image.Origin90), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUIImageOrigin90(L, (UnityEngine.UI.Image.Origin90)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "BottomLeft"))
{
translator.PushUnityEngineUIImageOrigin90(L, UnityEngine.UI.Image.Origin90.BottomLeft);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "TopLeft"))
{
translator.PushUnityEngineUIImageOrigin90(L, UnityEngine.UI.Image.Origin90.TopLeft);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "TopRight"))
{
translator.PushUnityEngineUIImageOrigin90(L, UnityEngine.UI.Image.Origin90.TopRight);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "BottomRight"))
{
translator.PushUnityEngineUIImageOrigin90(L, UnityEngine.UI.Image.Origin90.BottomRight);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.Origin90!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.Origin90! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUIImageOrigin180Wrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.Origin180), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.Origin180), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.Origin180), L, null, 5, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Bottom", UnityEngine.UI.Image.Origin180.Bottom);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.UI.Image.Origin180.Left);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Top", UnityEngine.UI.Image.Origin180.Top);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.UI.Image.Origin180.Right);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.Image.Origin180), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUIImageOrigin180(L, (UnityEngine.UI.Image.Origin180)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Bottom"))
{
translator.PushUnityEngineUIImageOrigin180(L, UnityEngine.UI.Image.Origin180.Bottom);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Left"))
{
translator.PushUnityEngineUIImageOrigin180(L, UnityEngine.UI.Image.Origin180.Left);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Top"))
{
translator.PushUnityEngineUIImageOrigin180(L, UnityEngine.UI.Image.Origin180.Top);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Right"))
{
translator.PushUnityEngineUIImageOrigin180(L, UnityEngine.UI.Image.Origin180.Right);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.Origin180!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.Origin180! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUIImageOrigin360Wrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.Origin360), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.Origin360), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.Origin360), L, null, 5, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Bottom", UnityEngine.UI.Image.Origin360.Bottom);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.UI.Image.Origin360.Right);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Top", UnityEngine.UI.Image.Origin360.Top);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.UI.Image.Origin360.Left);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.Image.Origin360), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUIImageOrigin360(L, (UnityEngine.UI.Image.Origin360)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Bottom"))
{
translator.PushUnityEngineUIImageOrigin360(L, UnityEngine.UI.Image.Origin360.Bottom);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Right"))
{
translator.PushUnityEngineUIImageOrigin360(L, UnityEngine.UI.Image.Origin360.Right);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Top"))
{
translator.PushUnityEngineUIImageOrigin360(L, UnityEngine.UI.Image.Origin360.Top);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Left"))
{
translator.PushUnityEngineUIImageOrigin360(L, UnityEngine.UI.Image.Origin360.Left);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.Origin360!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.Origin360! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUIInputFieldContentTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.InputField.ContentType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.InputField.ContentType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.InputField.ContentType), L, null, 11, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Standard", UnityEngine.UI.InputField.ContentType.Standard);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Autocorrected", UnityEngine.UI.InputField.ContentType.Autocorrected);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IntegerNumber", UnityEngine.UI.InputField.ContentType.IntegerNumber);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DecimalNumber", UnityEngine.UI.InputField.ContentType.DecimalNumber);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Alphanumeric", UnityEngine.UI.InputField.ContentType.Alphanumeric);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Name", UnityEngine.UI.InputField.ContentType.Name);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EmailAddress", UnityEngine.UI.InputField.ContentType.EmailAddress);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Password", UnityEngine.UI.InputField.ContentType.Password);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Pin", UnityEngine.UI.InputField.ContentType.Pin);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Custom", UnityEngine.UI.InputField.ContentType.Custom);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.InputField.ContentType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUIInputFieldContentType(L, (UnityEngine.UI.InputField.ContentType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Standard"))
{
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Standard);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Autocorrected"))
{
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Autocorrected);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "IntegerNumber"))
{
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.IntegerNumber);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "DecimalNumber"))
{
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.DecimalNumber);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Alphanumeric"))
{
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Alphanumeric);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Name"))
{
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Name);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "EmailAddress"))
{
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.EmailAddress);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Password"))
{
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Password);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Pin"))
{
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Pin);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Custom"))
{
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Custom);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.InputField.ContentType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.InputField.ContentType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUIInputFieldInputTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.InputField.InputType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.InputField.InputType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.InputField.InputType), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Standard", UnityEngine.UI.InputField.InputType.Standard);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoCorrect", UnityEngine.UI.InputField.InputType.AutoCorrect);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Password", UnityEngine.UI.InputField.InputType.Password);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.InputField.InputType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUIInputFieldInputType(L, (UnityEngine.UI.InputField.InputType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Standard"))
{
translator.PushUnityEngineUIInputFieldInputType(L, UnityEngine.UI.InputField.InputType.Standard);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoCorrect"))
{
translator.PushUnityEngineUIInputFieldInputType(L, UnityEngine.UI.InputField.InputType.AutoCorrect);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Password"))
{
translator.PushUnityEngineUIInputFieldInputType(L, UnityEngine.UI.InputField.InputType.Password);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.InputField.InputType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.InputField.InputType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUIInputFieldCharacterValidationWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.InputField.CharacterValidation), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.InputField.CharacterValidation), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.InputField.CharacterValidation), L, null, 7, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", UnityEngine.UI.InputField.CharacterValidation.None);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Integer", UnityEngine.UI.InputField.CharacterValidation.Integer);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Decimal", UnityEngine.UI.InputField.CharacterValidation.Decimal);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Alphanumeric", UnityEngine.UI.InputField.CharacterValidation.Alphanumeric);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Name", UnityEngine.UI.InputField.CharacterValidation.Name);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EmailAddress", UnityEngine.UI.InputField.CharacterValidation.EmailAddress);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.InputField.CharacterValidation), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUIInputFieldCharacterValidation(L, (UnityEngine.UI.InputField.CharacterValidation)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "None"))
{
translator.PushUnityEngineUIInputFieldCharacterValidation(L, UnityEngine.UI.InputField.CharacterValidation.None);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Integer"))
{
translator.PushUnityEngineUIInputFieldCharacterValidation(L, UnityEngine.UI.InputField.CharacterValidation.Integer);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Decimal"))
{
translator.PushUnityEngineUIInputFieldCharacterValidation(L, UnityEngine.UI.InputField.CharacterValidation.Decimal);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Alphanumeric"))
{
translator.PushUnityEngineUIInputFieldCharacterValidation(L, UnityEngine.UI.InputField.CharacterValidation.Alphanumeric);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Name"))
{
translator.PushUnityEngineUIInputFieldCharacterValidation(L, UnityEngine.UI.InputField.CharacterValidation.Name);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "EmailAddress"))
{
translator.PushUnityEngineUIInputFieldCharacterValidation(L, UnityEngine.UI.InputField.CharacterValidation.EmailAddress);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.InputField.CharacterValidation!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.InputField.CharacterValidation! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUIInputFieldLineTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.InputField.LineType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.InputField.LineType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.InputField.LineType), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SingleLine", UnityEngine.UI.InputField.LineType.SingleLine);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MultiLineSubmit", UnityEngine.UI.InputField.LineType.MultiLineSubmit);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MultiLineNewline", UnityEngine.UI.InputField.LineType.MultiLineNewline);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.InputField.LineType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUIInputFieldLineType(L, (UnityEngine.UI.InputField.LineType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "SingleLine"))
{
translator.PushUnityEngineUIInputFieldLineType(L, UnityEngine.UI.InputField.LineType.SingleLine);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "MultiLineSubmit"))
{
translator.PushUnityEngineUIInputFieldLineType(L, UnityEngine.UI.InputField.LineType.MultiLineSubmit);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "MultiLineNewline"))
{
translator.PushUnityEngineUIInputFieldLineType(L, UnityEngine.UI.InputField.LineType.MultiLineNewline);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.InputField.LineType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.InputField.LineType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUIScrollRectMovementTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.ScrollRect.MovementType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.ScrollRect.MovementType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.ScrollRect.MovementType), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Unrestricted", UnityEngine.UI.ScrollRect.MovementType.Unrestricted);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Elastic", UnityEngine.UI.ScrollRect.MovementType.Elastic);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Clamped", UnityEngine.UI.ScrollRect.MovementType.Clamped);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.ScrollRect.MovementType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUIScrollRectMovementType(L, (UnityEngine.UI.ScrollRect.MovementType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Unrestricted"))
{
translator.PushUnityEngineUIScrollRectMovementType(L, UnityEngine.UI.ScrollRect.MovementType.Unrestricted);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Elastic"))
{
translator.PushUnityEngineUIScrollRectMovementType(L, UnityEngine.UI.ScrollRect.MovementType.Elastic);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Clamped"))
{
translator.PushUnityEngineUIScrollRectMovementType(L, UnityEngine.UI.ScrollRect.MovementType.Clamped);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.ScrollRect.MovementType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.ScrollRect.MovementType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUIScrollRectScrollbarVisibilityWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Permanent", UnityEngine.UI.ScrollRect.ScrollbarVisibility.Permanent);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoHide", UnityEngine.UI.ScrollRect.ScrollbarVisibility.AutoHide);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoHideAndExpandViewport", UnityEngine.UI.ScrollRect.ScrollbarVisibility.AutoHideAndExpandViewport);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUIScrollRectScrollbarVisibility(L, (UnityEngine.UI.ScrollRect.ScrollbarVisibility)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Permanent"))
{
translator.PushUnityEngineUIScrollRectScrollbarVisibility(L, UnityEngine.UI.ScrollRect.ScrollbarVisibility.Permanent);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoHide"))
{
translator.PushUnityEngineUIScrollRectScrollbarVisibility(L, UnityEngine.UI.ScrollRect.ScrollbarVisibility.AutoHide);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoHideAndExpandViewport"))
{
translator.PushUnityEngineUIScrollRectScrollbarVisibility(L, UnityEngine.UI.ScrollRect.ScrollbarVisibility.AutoHideAndExpandViewport);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.ScrollRect.ScrollbarVisibility!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.ScrollRect.ScrollbarVisibility! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUISliderDirectionWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Slider.Direction), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.Slider.Direction), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.Slider.Direction), L, null, 5, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LeftToRight", UnityEngine.UI.Slider.Direction.LeftToRight);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RightToLeft", UnityEngine.UI.Slider.Direction.RightToLeft);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BottomToTop", UnityEngine.UI.Slider.Direction.BottomToTop);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TopToBottom", UnityEngine.UI.Slider.Direction.TopToBottom);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.Slider.Direction), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUISliderDirection(L, (UnityEngine.UI.Slider.Direction)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "LeftToRight"))
{
translator.PushUnityEngineUISliderDirection(L, UnityEngine.UI.Slider.Direction.LeftToRight);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "RightToLeft"))
{
translator.PushUnityEngineUISliderDirection(L, UnityEngine.UI.Slider.Direction.RightToLeft);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "BottomToTop"))
{
translator.PushUnityEngineUISliderDirection(L, UnityEngine.UI.Slider.Direction.BottomToTop);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "TopToBottom"))
{
translator.PushUnityEngineUISliderDirection(L, UnityEngine.UI.Slider.Direction.TopToBottom);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Slider.Direction!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Slider.Direction! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUIToggleToggleTransitionWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Toggle.ToggleTransition), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.Toggle.ToggleTransition), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.Toggle.ToggleTransition), L, null, 3, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", UnityEngine.UI.Toggle.ToggleTransition.None);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Fade", UnityEngine.UI.Toggle.ToggleTransition.Fade);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.Toggle.ToggleTransition), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUIToggleToggleTransition(L, (UnityEngine.UI.Toggle.ToggleTransition)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "None"))
{
translator.PushUnityEngineUIToggleToggleTransition(L, UnityEngine.UI.Toggle.ToggleTransition.None);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Fade"))
{
translator.PushUnityEngineUIToggleToggleTransition(L, UnityEngine.UI.Toggle.ToggleTransition.Fade);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Toggle.ToggleTransition!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Toggle.ToggleTransition! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUIGridLayoutGroupCornerWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.GridLayoutGroup.Corner), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.GridLayoutGroup.Corner), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.GridLayoutGroup.Corner), L, null, 5, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UpperLeft", UnityEngine.UI.GridLayoutGroup.Corner.UpperLeft);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UpperRight", UnityEngine.UI.GridLayoutGroup.Corner.UpperRight);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LowerLeft", UnityEngine.UI.GridLayoutGroup.Corner.LowerLeft);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LowerRight", UnityEngine.UI.GridLayoutGroup.Corner.LowerRight);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.GridLayoutGroup.Corner), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUIGridLayoutGroupCorner(L, (UnityEngine.UI.GridLayoutGroup.Corner)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "UpperLeft"))
{
translator.PushUnityEngineUIGridLayoutGroupCorner(L, UnityEngine.UI.GridLayoutGroup.Corner.UpperLeft);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "UpperRight"))
{
translator.PushUnityEngineUIGridLayoutGroupCorner(L, UnityEngine.UI.GridLayoutGroup.Corner.UpperRight);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "LowerLeft"))
{
translator.PushUnityEngineUIGridLayoutGroupCorner(L, UnityEngine.UI.GridLayoutGroup.Corner.LowerLeft);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "LowerRight"))
{
translator.PushUnityEngineUIGridLayoutGroupCorner(L, UnityEngine.UI.GridLayoutGroup.Corner.LowerRight);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.GridLayoutGroup.Corner!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.GridLayoutGroup.Corner! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUIGridLayoutGroupAxisWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.GridLayoutGroup.Axis), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.GridLayoutGroup.Axis), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.GridLayoutGroup.Axis), L, null, 3, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Horizontal", UnityEngine.UI.GridLayoutGroup.Axis.Horizontal);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Vertical", UnityEngine.UI.GridLayoutGroup.Axis.Vertical);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.GridLayoutGroup.Axis), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUIGridLayoutGroupAxis(L, (UnityEngine.UI.GridLayoutGroup.Axis)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Horizontal"))
{
translator.PushUnityEngineUIGridLayoutGroupAxis(L, UnityEngine.UI.GridLayoutGroup.Axis.Horizontal);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Vertical"))
{
translator.PushUnityEngineUIGridLayoutGroupAxis(L, UnityEngine.UI.GridLayoutGroup.Axis.Vertical);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.GridLayoutGroup.Axis!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.GridLayoutGroup.Axis! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEngineUIGridLayoutGroupConstraintWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.UI.GridLayoutGroup.Constraint), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.UI.GridLayoutGroup.Constraint), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.UI.GridLayoutGroup.Constraint), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Flexible", UnityEngine.UI.GridLayoutGroup.Constraint.Flexible);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FixedColumnCount", UnityEngine.UI.GridLayoutGroup.Constraint.FixedColumnCount);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FixedRowCount", UnityEngine.UI.GridLayoutGroup.Constraint.FixedRowCount);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.UI.GridLayoutGroup.Constraint), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEngineUIGridLayoutGroupConstraint(L, (UnityEngine.UI.GridLayoutGroup.Constraint)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Flexible"))
{
translator.PushUnityEngineUIGridLayoutGroupConstraint(L, UnityEngine.UI.GridLayoutGroup.Constraint.Flexible);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "FixedColumnCount"))
{
translator.PushUnityEngineUIGridLayoutGroupConstraint(L, UnityEngine.UI.GridLayoutGroup.Constraint.FixedColumnCount);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "FixedRowCount"))
{
translator.PushUnityEngineUIGridLayoutGroupConstraint(L, UnityEngine.UI.GridLayoutGroup.Constraint.FixedRowCount);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.GridLayoutGroup.Constraint!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.GridLayoutGroup.Constraint! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class SpineUnityBoneFollowerAxisOrientationWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(Spine.Unity.BoneFollower.AxisOrientation), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(Spine.Unity.BoneFollower.AxisOrientation), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(Spine.Unity.BoneFollower.AxisOrientation), L, null, 3, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "XAxis", Spine.Unity.BoneFollower.AxisOrientation.XAxis);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "YAxis", Spine.Unity.BoneFollower.AxisOrientation.YAxis);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(Spine.Unity.BoneFollower.AxisOrientation), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushSpineUnityBoneFollowerAxisOrientation(L, (Spine.Unity.BoneFollower.AxisOrientation)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "XAxis"))
{
translator.PushSpineUnityBoneFollowerAxisOrientation(L, Spine.Unity.BoneFollower.AxisOrientation.XAxis);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "YAxis"))
{
translator.PushSpineUnityBoneFollowerAxisOrientation(L, Spine.Unity.BoneFollower.AxisOrientation.YAxis);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for Spine.Unity.BoneFollower.AxisOrientation!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for Spine.Unity.BoneFollower.AxisOrientation! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class SpineUnitySkeletonGraphicLayoutModeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(Spine.Unity.SkeletonGraphic.LayoutMode), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(Spine.Unity.SkeletonGraphic.LayoutMode), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(Spine.Unity.SkeletonGraphic.LayoutMode), L, null, 6, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", Spine.Unity.SkeletonGraphic.LayoutMode.None);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WidthControlsHeight", Spine.Unity.SkeletonGraphic.LayoutMode.WidthControlsHeight);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "HeightControlsWidth", Spine.Unity.SkeletonGraphic.LayoutMode.HeightControlsWidth);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FitInParent", Spine.Unity.SkeletonGraphic.LayoutMode.FitInParent);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EnvelopeParent", Spine.Unity.SkeletonGraphic.LayoutMode.EnvelopeParent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(Spine.Unity.SkeletonGraphic.LayoutMode), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushSpineUnitySkeletonGraphicLayoutMode(L, (Spine.Unity.SkeletonGraphic.LayoutMode)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "None"))
{
translator.PushSpineUnitySkeletonGraphicLayoutMode(L, Spine.Unity.SkeletonGraphic.LayoutMode.None);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "WidthControlsHeight"))
{
translator.PushSpineUnitySkeletonGraphicLayoutMode(L, Spine.Unity.SkeletonGraphic.LayoutMode.WidthControlsHeight);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "HeightControlsWidth"))
{
translator.PushSpineUnitySkeletonGraphicLayoutMode(L, Spine.Unity.SkeletonGraphic.LayoutMode.HeightControlsWidth);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "FitInParent"))
{
translator.PushSpineUnitySkeletonGraphicLayoutMode(L, Spine.Unity.SkeletonGraphic.LayoutMode.FitInParent);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "EnvelopeParent"))
{
translator.PushSpineUnitySkeletonGraphicLayoutMode(L, Spine.Unity.SkeletonGraphic.LayoutMode.EnvelopeParent);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for Spine.Unity.SkeletonGraphic.LayoutMode!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for Spine.Unity.SkeletonGraphic.LayoutMode! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class TMProTextAlignmentOptionsWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(TMPro.TextAlignmentOptions), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(TMPro.TextAlignmentOptions), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(TMPro.TextAlignmentOptions), L, null, 38, 0, 0);
Utils.RegisterEnumType(L, typeof(TMPro.TextAlignmentOptions));
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(TMPro.TextAlignmentOptions), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushTMProTextAlignmentOptions(L, (TMPro.TextAlignmentOptions)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
try
{
translator.TranslateToEnumToTop(L, typeof(TMPro.TextAlignmentOptions), 1);
}
catch (System.Exception e)
{
return LuaAPI.luaL_error(L, "cast to " + typeof(TMPro.TextAlignmentOptions) + " exception:" + e);
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for TMPro.TextAlignmentOptions! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class TMProTMP_InputFieldContentTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(TMPro.TMP_InputField.ContentType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(TMPro.TMP_InputField.ContentType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(TMPro.TMP_InputField.ContentType), L, null, 11, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Standard", TMPro.TMP_InputField.ContentType.Standard);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Autocorrected", TMPro.TMP_InputField.ContentType.Autocorrected);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IntegerNumber", TMPro.TMP_InputField.ContentType.IntegerNumber);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DecimalNumber", TMPro.TMP_InputField.ContentType.DecimalNumber);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Alphanumeric", TMPro.TMP_InputField.ContentType.Alphanumeric);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Name", TMPro.TMP_InputField.ContentType.Name);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EmailAddress", TMPro.TMP_InputField.ContentType.EmailAddress);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Password", TMPro.TMP_InputField.ContentType.Password);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Pin", TMPro.TMP_InputField.ContentType.Pin);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Custom", TMPro.TMP_InputField.ContentType.Custom);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(TMPro.TMP_InputField.ContentType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushTMProTMP_InputFieldContentType(L, (TMPro.TMP_InputField.ContentType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Standard"))
{
translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.Standard);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Autocorrected"))
{
translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.Autocorrected);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "IntegerNumber"))
{
translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.IntegerNumber);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "DecimalNumber"))
{
translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.DecimalNumber);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Alphanumeric"))
{
translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.Alphanumeric);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Name"))
{
translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.Name);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "EmailAddress"))
{
translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.EmailAddress);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Password"))
{
translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.Password);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Pin"))
{
translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.Pin);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Custom"))
{
translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.Custom);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for TMPro.TMP_InputField.ContentType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for TMPro.TMP_InputField.ContentType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class TMProTMP_InputFieldInputTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(TMPro.TMP_InputField.InputType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(TMPro.TMP_InputField.InputType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(TMPro.TMP_InputField.InputType), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Standard", TMPro.TMP_InputField.InputType.Standard);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoCorrect", TMPro.TMP_InputField.InputType.AutoCorrect);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Password", TMPro.TMP_InputField.InputType.Password);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(TMPro.TMP_InputField.InputType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushTMProTMP_InputFieldInputType(L, (TMPro.TMP_InputField.InputType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Standard"))
{
translator.PushTMProTMP_InputFieldInputType(L, TMPro.TMP_InputField.InputType.Standard);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoCorrect"))
{
translator.PushTMProTMP_InputFieldInputType(L, TMPro.TMP_InputField.InputType.AutoCorrect);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Password"))
{
translator.PushTMProTMP_InputFieldInputType(L, TMPro.TMP_InputField.InputType.Password);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for TMPro.TMP_InputField.InputType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for TMPro.TMP_InputField.InputType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class TMProTMP_InputFieldCharacterValidationWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(TMPro.TMP_InputField.CharacterValidation), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(TMPro.TMP_InputField.CharacterValidation), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(TMPro.TMP_InputField.CharacterValidation), L, null, 10, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", TMPro.TMP_InputField.CharacterValidation.None);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Digit", TMPro.TMP_InputField.CharacterValidation.Digit);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Integer", TMPro.TMP_InputField.CharacterValidation.Integer);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Decimal", TMPro.TMP_InputField.CharacterValidation.Decimal);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Alphanumeric", TMPro.TMP_InputField.CharacterValidation.Alphanumeric);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Name", TMPro.TMP_InputField.CharacterValidation.Name);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Regex", TMPro.TMP_InputField.CharacterValidation.Regex);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EmailAddress", TMPro.TMP_InputField.CharacterValidation.EmailAddress);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CustomValidator", TMPro.TMP_InputField.CharacterValidation.CustomValidator);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(TMPro.TMP_InputField.CharacterValidation), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushTMProTMP_InputFieldCharacterValidation(L, (TMPro.TMP_InputField.CharacterValidation)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "None"))
{
translator.PushTMProTMP_InputFieldCharacterValidation(L, TMPro.TMP_InputField.CharacterValidation.None);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Digit"))
{
translator.PushTMProTMP_InputFieldCharacterValidation(L, TMPro.TMP_InputField.CharacterValidation.Digit);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Integer"))
{
translator.PushTMProTMP_InputFieldCharacterValidation(L, TMPro.TMP_InputField.CharacterValidation.Integer);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Decimal"))
{
translator.PushTMProTMP_InputFieldCharacterValidation(L, TMPro.TMP_InputField.CharacterValidation.Decimal);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Alphanumeric"))
{
translator.PushTMProTMP_InputFieldCharacterValidation(L, TMPro.TMP_InputField.CharacterValidation.Alphanumeric);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Name"))
{
translator.PushTMProTMP_InputFieldCharacterValidation(L, TMPro.TMP_InputField.CharacterValidation.Name);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Regex"))
{
translator.PushTMProTMP_InputFieldCharacterValidation(L, TMPro.TMP_InputField.CharacterValidation.Regex);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "EmailAddress"))
{
translator.PushTMProTMP_InputFieldCharacterValidation(L, TMPro.TMP_InputField.CharacterValidation.EmailAddress);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "CustomValidator"))
{
translator.PushTMProTMP_InputFieldCharacterValidation(L, TMPro.TMP_InputField.CharacterValidation.CustomValidator);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for TMPro.TMP_InputField.CharacterValidation!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for TMPro.TMP_InputField.CharacterValidation! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class TMProTMP_InputFieldLineTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(TMPro.TMP_InputField.LineType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(TMPro.TMP_InputField.LineType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(TMPro.TMP_InputField.LineType), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SingleLine", TMPro.TMP_InputField.LineType.SingleLine);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MultiLineSubmit", TMPro.TMP_InputField.LineType.MultiLineSubmit);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MultiLineNewline", TMPro.TMP_InputField.LineType.MultiLineNewline);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(TMPro.TMP_InputField.LineType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushTMProTMP_InputFieldLineType(L, (TMPro.TMP_InputField.LineType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "SingleLine"))
{
translator.PushTMProTMP_InputFieldLineType(L, TMPro.TMP_InputField.LineType.SingleLine);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "MultiLineSubmit"))
{
translator.PushTMProTMP_InputFieldLineType(L, TMPro.TMP_InputField.LineType.MultiLineSubmit);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "MultiLineNewline"))
{
translator.PushTMProTMP_InputFieldLineType(L, TMPro.TMP_InputField.LineType.MultiLineNewline);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for TMPro.TMP_InputField.LineType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for TMPro.TMP_InputField.LineType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class ThinkingAnalyticsThinkingAnalyticsAPITATimeZoneWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone), L, null, 8, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Local", ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.Local);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UTC", ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.UTC);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Asia_Shanghai", ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.Asia_Shanghai);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Asia_Tokyo", ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.Asia_Tokyo);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "America_Los_Angeles", ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.America_Los_Angeles);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "America_New_York", ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.America_New_York);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Other", ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.Other);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, (ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Local"))
{
translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.Local);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "UTC"))
{
translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.UTC);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Asia_Shanghai"))
{
translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.Asia_Shanghai);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Asia_Tokyo"))
{
translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.Asia_Tokyo);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "America_Los_Angeles"))
{
translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.America_Los_Angeles);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "America_New_York"))
{
translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.America_New_York);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Other"))
{
translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.Other);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class ThinkingAnalyticsThinkingAnalyticsAPITAModeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NORMAL", ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode.NORMAL);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DEBUG", ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode.DEBUG);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DEBUG_ONLY", ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode.DEBUG_ONLY);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushThinkingAnalyticsThinkingAnalyticsAPITAMode(L, (ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "NORMAL"))
{
translator.PushThinkingAnalyticsThinkingAnalyticsAPITAMode(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode.NORMAL);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "DEBUG"))
{
translator.PushThinkingAnalyticsThinkingAnalyticsAPITAMode(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode.DEBUG);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "DEBUG_ONLY"))
{
translator.PushThinkingAnalyticsThinkingAnalyticsAPITAMode(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode.DEBUG_ONLY);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class ThinkingAnalyticsThinkingAnalyticsAPINetworkTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DEFAULT", ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType.DEFAULT);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WIFI", ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType.WIFI);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ALL", ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType.ALL);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushThinkingAnalyticsThinkingAnalyticsAPINetworkType(L, (ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "DEFAULT"))
{
translator.PushThinkingAnalyticsThinkingAnalyticsAPINetworkType(L, ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType.DEFAULT);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "WIFI"))
{
translator.PushThinkingAnalyticsThinkingAnalyticsAPINetworkType(L, ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType.WIFI);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "ALL"))
{
translator.PushThinkingAnalyticsThinkingAnalyticsAPINetworkType(L, ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType.ALL);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class DGTweeningAutoPlayWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(DG.Tweening.AutoPlay), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(DG.Tweening.AutoPlay), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(DG.Tweening.AutoPlay), L, null, 5, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", DG.Tweening.AutoPlay.None);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoPlaySequences", DG.Tweening.AutoPlay.AutoPlaySequences);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoPlayTweeners", DG.Tweening.AutoPlay.AutoPlayTweeners);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "All", DG.Tweening.AutoPlay.All);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(DG.Tweening.AutoPlay), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushDGTweeningAutoPlay(L, (DG.Tweening.AutoPlay)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "None"))
{
translator.PushDGTweeningAutoPlay(L, DG.Tweening.AutoPlay.None);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoPlaySequences"))
{
translator.PushDGTweeningAutoPlay(L, DG.Tweening.AutoPlay.AutoPlaySequences);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoPlayTweeners"))
{
translator.PushDGTweeningAutoPlay(L, DG.Tweening.AutoPlay.AutoPlayTweeners);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "All"))
{
translator.PushDGTweeningAutoPlay(L, DG.Tweening.AutoPlay.All);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.AutoPlay!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.AutoPlay! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class DGTweeningAxisConstraintWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(DG.Tweening.AxisConstraint), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(DG.Tweening.AxisConstraint), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(DG.Tweening.AxisConstraint), L, null, 6, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", DG.Tweening.AxisConstraint.None);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "X", DG.Tweening.AxisConstraint.X);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Y", DG.Tweening.AxisConstraint.Y);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Z", DG.Tweening.AxisConstraint.Z);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "W", DG.Tweening.AxisConstraint.W);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(DG.Tweening.AxisConstraint), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushDGTweeningAxisConstraint(L, (DG.Tweening.AxisConstraint)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "None"))
{
translator.PushDGTweeningAxisConstraint(L, DG.Tweening.AxisConstraint.None);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "X"))
{
translator.PushDGTweeningAxisConstraint(L, DG.Tweening.AxisConstraint.X);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Y"))
{
translator.PushDGTweeningAxisConstraint(L, DG.Tweening.AxisConstraint.Y);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Z"))
{
translator.PushDGTweeningAxisConstraint(L, DG.Tweening.AxisConstraint.Z);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "W"))
{
translator.PushDGTweeningAxisConstraint(L, DG.Tweening.AxisConstraint.W);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.AxisConstraint!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.AxisConstraint! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class DGTweeningEaseWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(DG.Tweening.Ease), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(DG.Tweening.Ease), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(DG.Tweening.Ease), L, null, 39, 0, 0);
Utils.RegisterEnumType(L, typeof(DG.Tweening.Ease));
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(DG.Tweening.Ease), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushDGTweeningEase(L, (DG.Tweening.Ease)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
try
{
translator.TranslateToEnumToTop(L, typeof(DG.Tweening.Ease), 1);
}
catch (System.Exception e)
{
return LuaAPI.luaL_error(L, "cast to " + typeof(DG.Tweening.Ease) + " exception:" + e);
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.Ease! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class DGTweeningLogBehaviourWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(DG.Tweening.LogBehaviour), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(DG.Tweening.LogBehaviour), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(DG.Tweening.LogBehaviour), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Default", DG.Tweening.LogBehaviour.Default);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Verbose", DG.Tweening.LogBehaviour.Verbose);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ErrorsOnly", DG.Tweening.LogBehaviour.ErrorsOnly);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(DG.Tweening.LogBehaviour), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushDGTweeningLogBehaviour(L, (DG.Tweening.LogBehaviour)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Default"))
{
translator.PushDGTweeningLogBehaviour(L, DG.Tweening.LogBehaviour.Default);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Verbose"))
{
translator.PushDGTweeningLogBehaviour(L, DG.Tweening.LogBehaviour.Verbose);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "ErrorsOnly"))
{
translator.PushDGTweeningLogBehaviour(L, DG.Tweening.LogBehaviour.ErrorsOnly);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.LogBehaviour!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.LogBehaviour! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class DGTweeningLoopTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(DG.Tweening.LoopType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(DG.Tweening.LoopType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(DG.Tweening.LoopType), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Restart", DG.Tweening.LoopType.Restart);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Yoyo", DG.Tweening.LoopType.Yoyo);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Incremental", DG.Tweening.LoopType.Incremental);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(DG.Tweening.LoopType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushDGTweeningLoopType(L, (DG.Tweening.LoopType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Restart"))
{
translator.PushDGTweeningLoopType(L, DG.Tweening.LoopType.Restart);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Yoyo"))
{
translator.PushDGTweeningLoopType(L, DG.Tweening.LoopType.Yoyo);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Incremental"))
{
translator.PushDGTweeningLoopType(L, DG.Tweening.LoopType.Incremental);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.LoopType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.LoopType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class DGTweeningPathModeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(DG.Tweening.PathMode), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(DG.Tweening.PathMode), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(DG.Tweening.PathMode), L, null, 5, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Ignore", DG.Tweening.PathMode.Ignore);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Full3D", DG.Tweening.PathMode.Full3D);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TopDown2D", DG.Tweening.PathMode.TopDown2D);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Sidescroller2D", DG.Tweening.PathMode.Sidescroller2D);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(DG.Tweening.PathMode), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushDGTweeningPathMode(L, (DG.Tweening.PathMode)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Ignore"))
{
translator.PushDGTweeningPathMode(L, DG.Tweening.PathMode.Ignore);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Full3D"))
{
translator.PushDGTweeningPathMode(L, DG.Tweening.PathMode.Full3D);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "TopDown2D"))
{
translator.PushDGTweeningPathMode(L, DG.Tweening.PathMode.TopDown2D);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Sidescroller2D"))
{
translator.PushDGTweeningPathMode(L, DG.Tweening.PathMode.Sidescroller2D);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.PathMode!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.PathMode! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class DGTweeningPathTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(DG.Tweening.PathType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(DG.Tweening.PathType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(DG.Tweening.PathType), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Linear", DG.Tweening.PathType.Linear);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CatmullRom", DG.Tweening.PathType.CatmullRom);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CubicBezier", DG.Tweening.PathType.CubicBezier);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(DG.Tweening.PathType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushDGTweeningPathType(L, (DG.Tweening.PathType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Linear"))
{
translator.PushDGTweeningPathType(L, DG.Tweening.PathType.Linear);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "CatmullRom"))
{
translator.PushDGTweeningPathType(L, DG.Tweening.PathType.CatmullRom);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "CubicBezier"))
{
translator.PushDGTweeningPathType(L, DG.Tweening.PathType.CubicBezier);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.PathType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.PathType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class DGTweeningRotateModeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(DG.Tweening.RotateMode), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(DG.Tweening.RotateMode), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(DG.Tweening.RotateMode), L, null, 5, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Fast", DG.Tweening.RotateMode.Fast);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FastBeyond360", DG.Tweening.RotateMode.FastBeyond360);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WorldAxisAdd", DG.Tweening.RotateMode.WorldAxisAdd);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LocalAxisAdd", DG.Tweening.RotateMode.LocalAxisAdd);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(DG.Tweening.RotateMode), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushDGTweeningRotateMode(L, (DG.Tweening.RotateMode)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Fast"))
{
translator.PushDGTweeningRotateMode(L, DG.Tweening.RotateMode.Fast);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "FastBeyond360"))
{
translator.PushDGTweeningRotateMode(L, DG.Tweening.RotateMode.FastBeyond360);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "WorldAxisAdd"))
{
translator.PushDGTweeningRotateMode(L, DG.Tweening.RotateMode.WorldAxisAdd);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "LocalAxisAdd"))
{
translator.PushDGTweeningRotateMode(L, DG.Tweening.RotateMode.LocalAxisAdd);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.RotateMode!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.RotateMode! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class DGTweeningScrambleModeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(DG.Tweening.ScrambleMode), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(DG.Tweening.ScrambleMode), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(DG.Tweening.ScrambleMode), L, null, 7, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", DG.Tweening.ScrambleMode.None);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "All", DG.Tweening.ScrambleMode.All);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Uppercase", DG.Tweening.ScrambleMode.Uppercase);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Lowercase", DG.Tweening.ScrambleMode.Lowercase);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Numerals", DG.Tweening.ScrambleMode.Numerals);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Custom", DG.Tweening.ScrambleMode.Custom);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(DG.Tweening.ScrambleMode), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushDGTweeningScrambleMode(L, (DG.Tweening.ScrambleMode)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "None"))
{
translator.PushDGTweeningScrambleMode(L, DG.Tweening.ScrambleMode.None);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "All"))
{
translator.PushDGTweeningScrambleMode(L, DG.Tweening.ScrambleMode.All);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Uppercase"))
{
translator.PushDGTweeningScrambleMode(L, DG.Tweening.ScrambleMode.Uppercase);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Lowercase"))
{
translator.PushDGTweeningScrambleMode(L, DG.Tweening.ScrambleMode.Lowercase);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Numerals"))
{
translator.PushDGTweeningScrambleMode(L, DG.Tweening.ScrambleMode.Numerals);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Custom"))
{
translator.PushDGTweeningScrambleMode(L, DG.Tweening.ScrambleMode.Custom);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.ScrambleMode!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.ScrambleMode! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class DGTweeningTweenTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(DG.Tweening.TweenType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(DG.Tweening.TweenType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(DG.Tweening.TweenType), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Tweener", DG.Tweening.TweenType.Tweener);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Sequence", DG.Tweening.TweenType.Sequence);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Callback", DG.Tweening.TweenType.Callback);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(DG.Tweening.TweenType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushDGTweeningTweenType(L, (DG.Tweening.TweenType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Tweener"))
{
translator.PushDGTweeningTweenType(L, DG.Tweening.TweenType.Tweener);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Sequence"))
{
translator.PushDGTweeningTweenType(L, DG.Tweening.TweenType.Sequence);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Callback"))
{
translator.PushDGTweeningTweenType(L, DG.Tweening.TweenType.Callback);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.TweenType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.TweenType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class DGTweeningUpdateTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(DG.Tweening.UpdateType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(DG.Tweening.UpdateType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(DG.Tweening.UpdateType), L, null, 5, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Normal", DG.Tweening.UpdateType.Normal);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Late", DG.Tweening.UpdateType.Late);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Fixed", DG.Tweening.UpdateType.Fixed);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Manual", DG.Tweening.UpdateType.Manual);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(DG.Tweening.UpdateType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushDGTweeningUpdateType(L, (DG.Tweening.UpdateType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Normal"))
{
translator.PushDGTweeningUpdateType(L, DG.Tweening.UpdateType.Normal);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Late"))
{
translator.PushDGTweeningUpdateType(L, DG.Tweening.UpdateType.Late);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Fixed"))
{
translator.PushDGTweeningUpdateType(L, DG.Tweening.UpdateType.Fixed);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Manual"))
{
translator.PushDGTweeningUpdateType(L, DG.Tweening.UpdateType.Manual);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.UpdateType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.UpdateType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class HttpRequestStateWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(Http.RequestState), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(Http.RequestState), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(Http.RequestState), L, null, 6, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Success", Http.RequestState.Success);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Aborted", Http.RequestState.Aborted);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Fail", Http.RequestState.Fail);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ConnectionTimedOut", Http.RequestState.ConnectionTimedOut);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TimedOut", Http.RequestState.TimedOut);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(Http.RequestState), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushHttpRequestState(L, (Http.RequestState)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Success"))
{
translator.PushHttpRequestState(L, Http.RequestState.Success);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Aborted"))
{
translator.PushHttpRequestState(L, Http.RequestState.Aborted);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Fail"))
{
translator.PushHttpRequestState(L, Http.RequestState.Fail);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "ConnectionTimedOut"))
{
translator.PushHttpRequestState(L, Http.RequestState.ConnectionTimedOut);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "TimedOut"))
{
translator.PushHttpRequestState(L, Http.RequestState.TimedOut);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for Http.RequestState!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for Http.RequestState! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class UnityEnginePurchasingProductTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(UnityEngine.Purchasing.ProductType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(UnityEngine.Purchasing.ProductType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(UnityEngine.Purchasing.ProductType), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Consumable", UnityEngine.Purchasing.ProductType.Consumable);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NonConsumable", UnityEngine.Purchasing.ProductType.NonConsumable);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Subscription", UnityEngine.Purchasing.ProductType.Subscription);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(UnityEngine.Purchasing.ProductType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushUnityEnginePurchasingProductType(L, (UnityEngine.Purchasing.ProductType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Consumable"))
{
translator.PushUnityEnginePurchasingProductType(L, UnityEngine.Purchasing.ProductType.Consumable);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "NonConsumable"))
{
translator.PushUnityEnginePurchasingProductType(L, UnityEngine.Purchasing.ProductType.NonConsumable);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Subscription"))
{
translator.PushUnityEnginePurchasingProductType(L, UnityEngine.Purchasing.ProductType.Subscription);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Purchasing.ProductType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Purchasing.ProductType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class BFBFSliderFillDirectionWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(BF.BFSlider.FillDirection), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(BF.BFSlider.FillDirection), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(BF.BFSlider.FillDirection), L, null, 5, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", BF.BFSlider.FillDirection.Right);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", BF.BFSlider.FillDirection.Left);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Up", BF.BFSlider.FillDirection.Up);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Down", BF.BFSlider.FillDirection.Down);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(BF.BFSlider.FillDirection), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushBFBFSliderFillDirection(L, (BF.BFSlider.FillDirection)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Right"))
{
translator.PushBFBFSliderFillDirection(L, BF.BFSlider.FillDirection.Right);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Left"))
{
translator.PushBFBFSliderFillDirection(L, BF.BFSlider.FillDirection.Left);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Up"))
{
translator.PushBFBFSliderFillDirection(L, BF.BFSlider.FillDirection.Up);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Down"))
{
translator.PushBFBFSliderFillDirection(L, BF.BFSlider.FillDirection.Down);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for BF.BFSlider.FillDirection!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for BF.BFSlider.FillDirection! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class BFScrollRectBaseOldMovementTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(BF.ScrollRectBaseOld.MovementType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(BF.ScrollRectBaseOld.MovementType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(BF.ScrollRectBaseOld.MovementType), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Unrestricted", BF.ScrollRectBaseOld.MovementType.Unrestricted);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Elastic", BF.ScrollRectBaseOld.MovementType.Elastic);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Clamped", BF.ScrollRectBaseOld.MovementType.Clamped);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(BF.ScrollRectBaseOld.MovementType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushBFScrollRectBaseOldMovementType(L, (BF.ScrollRectBaseOld.MovementType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Unrestricted"))
{
translator.PushBFScrollRectBaseOldMovementType(L, BF.ScrollRectBaseOld.MovementType.Unrestricted);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Elastic"))
{
translator.PushBFScrollRectBaseOldMovementType(L, BF.ScrollRectBaseOld.MovementType.Elastic);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Clamped"))
{
translator.PushBFScrollRectBaseOldMovementType(L, BF.ScrollRectBaseOld.MovementType.Clamped);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for BF.ScrollRectBaseOld.MovementType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for BF.ScrollRectBaseOld.MovementType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class BFScrollRectBaseOldScrollbarVisibilityWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(BF.ScrollRectBaseOld.ScrollbarVisibility), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(BF.ScrollRectBaseOld.ScrollbarVisibility), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(BF.ScrollRectBaseOld.ScrollbarVisibility), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Permanent", BF.ScrollRectBaseOld.ScrollbarVisibility.Permanent);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoHide", BF.ScrollRectBaseOld.ScrollbarVisibility.AutoHide);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoHideAndExpandViewport", BF.ScrollRectBaseOld.ScrollbarVisibility.AutoHideAndExpandViewport);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(BF.ScrollRectBaseOld.ScrollbarVisibility), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushBFScrollRectBaseOldScrollbarVisibility(L, (BF.ScrollRectBaseOld.ScrollbarVisibility)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Permanent"))
{
translator.PushBFScrollRectBaseOldScrollbarVisibility(L, BF.ScrollRectBaseOld.ScrollbarVisibility.Permanent);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoHide"))
{
translator.PushBFScrollRectBaseOldScrollbarVisibility(L, BF.ScrollRectBaseOld.ScrollbarVisibility.AutoHide);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoHideAndExpandViewport"))
{
translator.PushBFScrollRectBaseOldScrollbarVisibility(L, BF.ScrollRectBaseOld.ScrollbarVisibility.AutoHideAndExpandViewport);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for BF.ScrollRectBaseOld.ScrollbarVisibility!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for BF.ScrollRectBaseOld.ScrollbarVisibility! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class BFNetServiceTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(BF.NetServiceType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(BF.NetServiceType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(BF.NetServiceType), L, null, 5, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Invalid", BF.NetServiceType.Invalid);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TCPService", BF.NetServiceType.TCPService);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UDPService", BF.NetServiceType.UDPService);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WebsocketService", BF.NetServiceType.WebsocketService);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(BF.NetServiceType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushBFNetServiceType(L, (BF.NetServiceType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Invalid"))
{
translator.PushBFNetServiceType(L, BF.NetServiceType.Invalid);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "TCPService"))
{
translator.PushBFNetServiceType(L, BF.NetServiceType.TCPService);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "UDPService"))
{
translator.PushBFNetServiceType(L, BF.NetServiceType.UDPService);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "WebsocketService"))
{
translator.PushBFNetServiceType(L, BF.NetServiceType.WebsocketService);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for BF.NetServiceType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for BF.NetServiceType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class BFNetIncomingMessageTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(BF.NetIncomingMessageType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(BF.NetIncomingMessageType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(BF.NetIncomingMessageType), L, null, 8, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Error", BF.NetIncomingMessageType.Error);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "StatusChange", BF.NetIncomingMessageType.StatusChange);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Data", BF.NetIncomingMessageType.Data);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DebugMessage", BF.NetIncomingMessageType.DebugMessage);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WarningMessage", BF.NetIncomingMessageType.WarningMessage);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ErrorMessage", BF.NetIncomingMessageType.ErrorMessage);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "HeartBeatMessage", BF.NetIncomingMessageType.HeartBeatMessage);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(BF.NetIncomingMessageType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushBFNetIncomingMessageType(L, (BF.NetIncomingMessageType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Error"))
{
translator.PushBFNetIncomingMessageType(L, BF.NetIncomingMessageType.Error);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "StatusChange"))
{
translator.PushBFNetIncomingMessageType(L, BF.NetIncomingMessageType.StatusChange);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Data"))
{
translator.PushBFNetIncomingMessageType(L, BF.NetIncomingMessageType.Data);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "DebugMessage"))
{
translator.PushBFNetIncomingMessageType(L, BF.NetIncomingMessageType.DebugMessage);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "WarningMessage"))
{
translator.PushBFNetIncomingMessageType(L, BF.NetIncomingMessageType.WarningMessage);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "ErrorMessage"))
{
translator.PushBFNetIncomingMessageType(L, BF.NetIncomingMessageType.ErrorMessage);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "HeartBeatMessage"))
{
translator.PushBFNetIncomingMessageType(L, BF.NetIncomingMessageType.HeartBeatMessage);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for BF.NetIncomingMessageType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for BF.NetIncomingMessageType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class BFTouchEventTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(BF.TouchEventType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(BF.TouchEventType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(BF.TouchEventType), L, null, 7, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Down", BF.TouchEventType.Down);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Touching", BF.TouchEventType.Touching);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Up", BF.TouchEventType.Up);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Hit", BF.TouchEventType.Hit);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Slide", BF.TouchEventType.Slide);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Dead", BF.TouchEventType.Dead);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(BF.TouchEventType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushBFTouchEventType(L, (BF.TouchEventType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "Down"))
{
translator.PushBFTouchEventType(L, BF.TouchEventType.Down);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Touching"))
{
translator.PushBFTouchEventType(L, BF.TouchEventType.Touching);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Up"))
{
translator.PushBFTouchEventType(L, BF.TouchEventType.Up);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Hit"))
{
translator.PushBFTouchEventType(L, BF.TouchEventType.Hit);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Slide"))
{
translator.PushBFTouchEventType(L, BF.TouchEventType.Slide);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Dead"))
{
translator.PushBFTouchEventType(L, BF.TouchEventType.Dead);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for BF.TouchEventType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for BF.TouchEventType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class BFSelectEventTypeWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(BF.SelectEventType), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(BF.SelectEventType), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(BF.SelectEventType), L, null, 6, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OnSelect", BF.SelectEventType.OnSelect);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OnLongSelected", BF.SelectEventType.OnLongSelected);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OnDeselect", BF.SelectEventType.OnDeselect);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OnLongDeselect", BF.SelectEventType.OnLongDeselect);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OnSelectHit", BF.SelectEventType.OnSelectHit);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(BF.SelectEventType), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushBFSelectEventType(L, (BF.SelectEventType)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "OnSelect"))
{
translator.PushBFSelectEventType(L, BF.SelectEventType.OnSelect);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "OnLongSelected"))
{
translator.PushBFSelectEventType(L, BF.SelectEventType.OnLongSelected);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "OnDeselect"))
{
translator.PushBFSelectEventType(L, BF.SelectEventType.OnDeselect);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "OnLongDeselect"))
{
translator.PushBFSelectEventType(L, BF.SelectEventType.OnLongDeselect);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "OnSelectHit"))
{
translator.PushBFSelectEventType(L, BF.SelectEventType.OnSelectHit);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for BF.SelectEventType!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for BF.SelectEventType! Expect number or string, got + " + lua_type);
}
return 1;
}
}
}