#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 System; namespace XLua { public partial class ObjectTranslator { class IniterAdderUnityEngineVector2 { static IniterAdderUnityEngineVector2() { LuaEnv.AddIniter(Init); } static void Init(LuaEnv luaenv, ObjectTranslator translator) { translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineVector2, translator.Get, translator.UpdateUnityEngineVector2); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineVector3, translator.Get, translator.UpdateUnityEngineVector3); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineVector4, translator.Get, translator.UpdateUnityEngineVector4); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineColor, translator.Get, translator.UpdateUnityEngineColor); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineQuaternion, translator.Get, translator.UpdateUnityEngineQuaternion); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRay, translator.Get, translator.UpdateUnityEngineRay); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineBounds, translator.Get, translator.UpdateUnityEngineBounds); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRay2D, translator.Get, translator.UpdateUnityEngineRay2D); translator.RegisterPushAndGetAndUpdate(translator.PushAdFormat, translator.Get, translator.UpdateAdFormat); translator.RegisterPushAndGetAndUpdate(translator.PushIronSourceBannerPosition, translator.Get, translator.UpdateIronSourceBannerPosition); translator.RegisterPushAndGetAndUpdate(translator.PushISAdQualityDeviceIdType, translator.Get, translator.UpdateISAdQualityDeviceIdType); translator.RegisterPushAndGetAndUpdate(translator.PushISAdQualityAdType, translator.Get, translator.UpdateISAdQualityAdType); translator.RegisterPushAndGetAndUpdate(translator.PushISAdQualityInitError, translator.Get, translator.UpdateISAdQualityInitError); translator.RegisterPushAndGetAndUpdate(translator.PushISAdQualityLogLevel, translator.Get, translator.UpdateISAdQualityLogLevel); translator.RegisterPushAndGetAndUpdate(translator.PushISAdQualityMediationNetwork, translator.Get, translator.UpdateISAdQualityMediationNetwork); translator.RegisterPushAndGetAndUpdate(translator.PushUIImageSheetAnimationAnimationType, translator.Get, translator.UpdateUIImageSheetAnimationAnimationType); translator.RegisterPushAndGetAndUpdate(translator.PushUIImageSheetAnimationTimeType, translator.Get, translator.UpdateUIImageSheetAnimationTimeType); translator.RegisterPushAndGetAndUpdate(translator.PushUIImageSheetAnimationStartFrameType, translator.Get, translator.UpdateUIImageSheetAnimationStartFrameType); translator.RegisterPushAndGetAndUpdate(translator.PushSystemReflectionBindingFlags, translator.Get, translator.UpdateSystemReflectionBindingFlags); translator.RegisterPushAndGetAndUpdate(translator.PushSystemDayOfWeek, translator.Get, translator.UpdateSystemDayOfWeek); translator.RegisterPushAndGetAndUpdate(translator.PushSystemNetNetworkInformationIPStatus, translator.Get, translator.UpdateSystemNetNetworkInformationIPStatus); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineCameraFieldOfViewAxis, translator.Get, translator.UpdateUnityEngineCameraFieldOfViewAxis); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineCameraRenderRequestMode, translator.Get, translator.UpdateUnityEngineCameraRenderRequestMode); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineCameraRenderRequestOutputSpace, translator.Get, translator.UpdateUnityEngineCameraRenderRequestOutputSpace); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRenderingLightShadowResolution, translator.Get, translator.UpdateUnityEngineRenderingLightShadowResolution); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRenderTextureFormat, translator.Get, translator.UpdateUnityEngineRenderTextureFormat); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRenderTextureReadWrite, translator.Get, translator.UpdateUnityEngineRenderTextureReadWrite); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRigidbodyConstraints, translator.Get, translator.UpdateUnityEngineRigidbodyConstraints); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineTransparencySortMode, translator.Get, translator.UpdateUnityEngineTransparencySortMode); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRectTransformAxis, translator.Get, translator.UpdateUnityEngineRectTransformAxis); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRectTransformEdge, translator.Get, translator.UpdateUnityEngineRectTransformEdge); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineAnimatorCullingMode, translator.Get, translator.UpdateUnityEngineAnimatorCullingMode); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineSystemLanguage, translator.Get, translator.UpdateUnityEngineSystemLanguage); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRenderingShadowCastingMode, translator.Get, translator.UpdateUnityEngineRenderingShadowCastingMode); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineCameraGateFitMode, translator.Get, translator.UpdateUnityEngineCameraGateFitMode); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineCameraStereoscopicEye, translator.Get, translator.UpdateUnityEngineCameraStereoscopicEye); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineCameraMonoOrStereoscopicEye, translator.Get, translator.UpdateUnityEngineCameraMonoOrStereoscopicEye); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineTexture2DEXRFlags, translator.Get, translator.UpdateUnityEngineTexture2DEXRFlags); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineKeyCode, translator.Get, translator.UpdateUnityEngineKeyCode); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineNetworkReachability, translator.Get, translator.UpdateUnityEngineNetworkReachability); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRuntimePlatform, translator.Get, translator.UpdateUnityEngineRuntimePlatform); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRenderingCompareFunction, translator.Get, translator.UpdateUnityEngineRenderingCompareFunction); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineTextAnchor, translator.Get, translator.UpdateUnityEngineTextAnchor); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineBatteryStatus, translator.Get, translator.UpdateUnityEngineBatteryStatus); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIGraphicRaycasterBlockingObjects, translator.Get, translator.UpdateUnityEngineUIGraphicRaycasterBlockingObjects); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIImageType, translator.Get, translator.UpdateUnityEngineUIImageType); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIImageFillMethod, translator.Get, translator.UpdateUnityEngineUIImageFillMethod); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIImageOriginHorizontal, translator.Get, translator.UpdateUnityEngineUIImageOriginHorizontal); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIImageOriginVertical, translator.Get, translator.UpdateUnityEngineUIImageOriginVertical); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIImageOrigin90, translator.Get, translator.UpdateUnityEngineUIImageOrigin90); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIImageOrigin180, translator.Get, translator.UpdateUnityEngineUIImageOrigin180); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIImageOrigin360, translator.Get, translator.UpdateUnityEngineUIImageOrigin360); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIInputFieldContentType, translator.Get, translator.UpdateUnityEngineUIInputFieldContentType); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIInputFieldInputType, translator.Get, translator.UpdateUnityEngineUIInputFieldInputType); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIInputFieldCharacterValidation, translator.Get, translator.UpdateUnityEngineUIInputFieldCharacterValidation); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIInputFieldLineType, translator.Get, translator.UpdateUnityEngineUIInputFieldLineType); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIScrollRectMovementType, translator.Get, translator.UpdateUnityEngineUIScrollRectMovementType); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIScrollRectScrollbarVisibility, translator.Get, translator.UpdateUnityEngineUIScrollRectScrollbarVisibility); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUISliderDirection, translator.Get, translator.UpdateUnityEngineUISliderDirection); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIToggleToggleTransition, translator.Get, translator.UpdateUnityEngineUIToggleToggleTransition); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIGridLayoutGroupCorner, translator.Get, translator.UpdateUnityEngineUIGridLayoutGroupCorner); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIGridLayoutGroupAxis, translator.Get, translator.UpdateUnityEngineUIGridLayoutGroupAxis); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIGridLayoutGroupConstraint, translator.Get, translator.UpdateUnityEngineUIGridLayoutGroupConstraint); translator.RegisterPushAndGetAndUpdate(translator.PushSpineUnityBoneFollowerAxisOrientation, translator.Get, translator.UpdateSpineUnityBoneFollowerAxisOrientation); translator.RegisterPushAndGetAndUpdate(translator.PushTMProTextAlignmentOptions, translator.Get, translator.UpdateTMProTextAlignmentOptions); translator.RegisterPushAndGetAndUpdate(translator.PushTMProTMP_InputFieldContentType, translator.Get, translator.UpdateTMProTMP_InputFieldContentType); translator.RegisterPushAndGetAndUpdate(translator.PushTMProTMP_InputFieldInputType, translator.Get, translator.UpdateTMProTMP_InputFieldInputType); translator.RegisterPushAndGetAndUpdate(translator.PushTMProTMP_InputFieldCharacterValidation, translator.Get, translator.UpdateTMProTMP_InputFieldCharacterValidation); translator.RegisterPushAndGetAndUpdate(translator.PushTMProTMP_InputFieldLineType, translator.Get, translator.UpdateTMProTMP_InputFieldLineType); translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningAutoPlay, translator.Get, translator.UpdateDGTweeningAutoPlay); translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningAxisConstraint, translator.Get, translator.UpdateDGTweeningAxisConstraint); translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningEase, translator.Get, translator.UpdateDGTweeningEase); translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningLogBehaviour, translator.Get, translator.UpdateDGTweeningLogBehaviour); translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningLoopType, translator.Get, translator.UpdateDGTweeningLoopType); translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningPathMode, translator.Get, translator.UpdateDGTweeningPathMode); translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningPathType, translator.Get, translator.UpdateDGTweeningPathType); translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningRotateMode, translator.Get, translator.UpdateDGTweeningRotateMode); translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningScrambleMode, translator.Get, translator.UpdateDGTweeningScrambleMode); translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningTweenType, translator.Get, translator.UpdateDGTweeningTweenType); translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningUpdateType, translator.Get, translator.UpdateDGTweeningUpdateType); translator.RegisterPushAndGetAndUpdate(translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone, translator.Get, translator.UpdateThinkingAnalyticsThinkingAnalyticsAPITATimeZone); translator.RegisterPushAndGetAndUpdate(translator.PushThinkingAnalyticsThinkingAnalyticsAPITAMode, translator.Get, translator.UpdateThinkingAnalyticsThinkingAnalyticsAPITAMode); translator.RegisterPushAndGetAndUpdate(translator.PushThinkingAnalyticsThinkingAnalyticsAPINetworkType, translator.Get, translator.UpdateThinkingAnalyticsThinkingAnalyticsAPINetworkType); translator.RegisterPushAndGetAndUpdate(translator.PushHttpRequestState, translator.Get, translator.UpdateHttpRequestState); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEnginePurchasingProductType, translator.Get, translator.UpdateUnityEnginePurchasingProductType); translator.RegisterPushAndGetAndUpdate(translator.PushBFBFSliderFillDirection, translator.Get, translator.UpdateBFBFSliderFillDirection); translator.RegisterPushAndGetAndUpdate(translator.PushBFScrollRectBaseOldMovementType, translator.Get, translator.UpdateBFScrollRectBaseOldMovementType); translator.RegisterPushAndGetAndUpdate(translator.PushBFScrollRectBaseOldScrollbarVisibility, translator.Get, translator.UpdateBFScrollRectBaseOldScrollbarVisibility); translator.RegisterPushAndGetAndUpdate(translator.PushBFNetServiceType, translator.Get, translator.UpdateBFNetServiceType); translator.RegisterPushAndGetAndUpdate(translator.PushBFNetIncomingMessageType, translator.Get, translator.UpdateBFNetIncomingMessageType); translator.RegisterPushAndGetAndUpdate(translator.PushBFBFGridLayoutCorner, translator.Get, translator.UpdateBFBFGridLayoutCorner); translator.RegisterPushAndGetAndUpdate(translator.PushBFBFGridLayoutConstraint, translator.Get, translator.UpdateBFBFGridLayoutConstraint); } } static IniterAdderUnityEngineVector2 s_IniterAdderUnityEngineVector2_dumb_obj = new IniterAdderUnityEngineVector2(); static IniterAdderUnityEngineVector2 IniterAdderUnityEngineVector2_dumb_obj {get{return s_IniterAdderUnityEngineVector2_dumb_obj;}} int UnityEngineVector2_TypeID = -1; public void PushUnityEngineVector2(RealStatePtr L, UnityEngine.Vector2 val) { if (UnityEngineVector2_TypeID == -1) { bool is_first; UnityEngineVector2_TypeID = getTypeId(L, typeof(UnityEngine.Vector2), out is_first); } IntPtr buff = LuaAPI.xlua_pushstruct(L, 8, UnityEngineVector2_TypeID); if (!CopyByValue.Pack(buff, 0, val)) { throw new Exception("pack fail fail for UnityEngine.Vector2 ,value="+val); } } public void Get(RealStatePtr L, int index, out UnityEngine.Vector2 val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineVector2_TypeID) { throw new Exception("invalid userdata for UnityEngine.Vector2"); } IntPtr buff = LuaAPI.lua_touserdata(L, index);if (!CopyByValue.UnPack(buff, 0, out val)) { throw new Exception("unpack fail for UnityEngine.Vector2"); } } else if (type ==LuaTypes.LUA_TTABLE) { CopyByValue.UnPack(this, L, index, out val); } else { val = (UnityEngine.Vector2)objectCasters.GetCaster(typeof(UnityEngine.Vector2))(L, index, null); } } public void UpdateUnityEngineVector2(RealStatePtr L, int index, UnityEngine.Vector2 val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineVector2_TypeID) { throw new Exception("invalid userdata for UnityEngine.Vector2"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, val)) { throw new Exception("pack fail for UnityEngine.Vector2 ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineVector3_TypeID = -1; public void PushUnityEngineVector3(RealStatePtr L, UnityEngine.Vector3 val) { if (UnityEngineVector3_TypeID == -1) { bool is_first; UnityEngineVector3_TypeID = getTypeId(L, typeof(UnityEngine.Vector3), out is_first); } IntPtr buff = LuaAPI.xlua_pushstruct(L, 12, UnityEngineVector3_TypeID); if (!CopyByValue.Pack(buff, 0, val)) { throw new Exception("pack fail fail for UnityEngine.Vector3 ,value="+val); } } public void Get(RealStatePtr L, int index, out UnityEngine.Vector3 val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineVector3_TypeID) { throw new Exception("invalid userdata for UnityEngine.Vector3"); } IntPtr buff = LuaAPI.lua_touserdata(L, index);if (!CopyByValue.UnPack(buff, 0, out val)) { throw new Exception("unpack fail for UnityEngine.Vector3"); } } else if (type ==LuaTypes.LUA_TTABLE) { CopyByValue.UnPack(this, L, index, out val); } else { val = (UnityEngine.Vector3)objectCasters.GetCaster(typeof(UnityEngine.Vector3))(L, index, null); } } public void UpdateUnityEngineVector3(RealStatePtr L, int index, UnityEngine.Vector3 val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineVector3_TypeID) { throw new Exception("invalid userdata for UnityEngine.Vector3"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, val)) { throw new Exception("pack fail for UnityEngine.Vector3 ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineVector4_TypeID = -1; public void PushUnityEngineVector4(RealStatePtr L, UnityEngine.Vector4 val) { if (UnityEngineVector4_TypeID == -1) { bool is_first; UnityEngineVector4_TypeID = getTypeId(L, typeof(UnityEngine.Vector4), out is_first); } IntPtr buff = LuaAPI.xlua_pushstruct(L, 16, UnityEngineVector4_TypeID); if (!CopyByValue.Pack(buff, 0, val)) { throw new Exception("pack fail fail for UnityEngine.Vector4 ,value="+val); } } public void Get(RealStatePtr L, int index, out UnityEngine.Vector4 val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineVector4_TypeID) { throw new Exception("invalid userdata for UnityEngine.Vector4"); } IntPtr buff = LuaAPI.lua_touserdata(L, index);if (!CopyByValue.UnPack(buff, 0, out val)) { throw new Exception("unpack fail for UnityEngine.Vector4"); } } else if (type ==LuaTypes.LUA_TTABLE) { CopyByValue.UnPack(this, L, index, out val); } else { val = (UnityEngine.Vector4)objectCasters.GetCaster(typeof(UnityEngine.Vector4))(L, index, null); } } public void UpdateUnityEngineVector4(RealStatePtr L, int index, UnityEngine.Vector4 val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineVector4_TypeID) { throw new Exception("invalid userdata for UnityEngine.Vector4"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, val)) { throw new Exception("pack fail for UnityEngine.Vector4 ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineColor_TypeID = -1; public void PushUnityEngineColor(RealStatePtr L, UnityEngine.Color val) { if (UnityEngineColor_TypeID == -1) { bool is_first; UnityEngineColor_TypeID = getTypeId(L, typeof(UnityEngine.Color), out is_first); } IntPtr buff = LuaAPI.xlua_pushstruct(L, 16, UnityEngineColor_TypeID); if (!CopyByValue.Pack(buff, 0, val)) { throw new Exception("pack fail fail for UnityEngine.Color ,value="+val); } } public void Get(RealStatePtr L, int index, out UnityEngine.Color val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineColor_TypeID) { throw new Exception("invalid userdata for UnityEngine.Color"); } IntPtr buff = LuaAPI.lua_touserdata(L, index);if (!CopyByValue.UnPack(buff, 0, out val)) { throw new Exception("unpack fail for UnityEngine.Color"); } } else if (type ==LuaTypes.LUA_TTABLE) { CopyByValue.UnPack(this, L, index, out val); } else { val = (UnityEngine.Color)objectCasters.GetCaster(typeof(UnityEngine.Color))(L, index, null); } } public void UpdateUnityEngineColor(RealStatePtr L, int index, UnityEngine.Color val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineColor_TypeID) { throw new Exception("invalid userdata for UnityEngine.Color"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, val)) { throw new Exception("pack fail for UnityEngine.Color ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineQuaternion_TypeID = -1; public void PushUnityEngineQuaternion(RealStatePtr L, UnityEngine.Quaternion val) { if (UnityEngineQuaternion_TypeID == -1) { bool is_first; UnityEngineQuaternion_TypeID = getTypeId(L, typeof(UnityEngine.Quaternion), out is_first); } IntPtr buff = LuaAPI.xlua_pushstruct(L, 16, UnityEngineQuaternion_TypeID); if (!CopyByValue.Pack(buff, 0, val)) { throw new Exception("pack fail fail for UnityEngine.Quaternion ,value="+val); } } public void Get(RealStatePtr L, int index, out UnityEngine.Quaternion val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineQuaternion_TypeID) { throw new Exception("invalid userdata for UnityEngine.Quaternion"); } IntPtr buff = LuaAPI.lua_touserdata(L, index);if (!CopyByValue.UnPack(buff, 0, out val)) { throw new Exception("unpack fail for UnityEngine.Quaternion"); } } else if (type ==LuaTypes.LUA_TTABLE) { CopyByValue.UnPack(this, L, index, out val); } else { val = (UnityEngine.Quaternion)objectCasters.GetCaster(typeof(UnityEngine.Quaternion))(L, index, null); } } public void UpdateUnityEngineQuaternion(RealStatePtr L, int index, UnityEngine.Quaternion val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineQuaternion_TypeID) { throw new Exception("invalid userdata for UnityEngine.Quaternion"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, val)) { throw new Exception("pack fail for UnityEngine.Quaternion ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineRay_TypeID = -1; public void PushUnityEngineRay(RealStatePtr L, UnityEngine.Ray val) { if (UnityEngineRay_TypeID == -1) { bool is_first; UnityEngineRay_TypeID = getTypeId(L, typeof(UnityEngine.Ray), out is_first); } IntPtr buff = LuaAPI.xlua_pushstruct(L, 24, UnityEngineRay_TypeID); if (!CopyByValue.Pack(buff, 0, val)) { throw new Exception("pack fail fail for UnityEngine.Ray ,value="+val); } } public void Get(RealStatePtr L, int index, out UnityEngine.Ray val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRay_TypeID) { throw new Exception("invalid userdata for UnityEngine.Ray"); } IntPtr buff = LuaAPI.lua_touserdata(L, index);if (!CopyByValue.UnPack(buff, 0, out val)) { throw new Exception("unpack fail for UnityEngine.Ray"); } } else if (type ==LuaTypes.LUA_TTABLE) { CopyByValue.UnPack(this, L, index, out val); } else { val = (UnityEngine.Ray)objectCasters.GetCaster(typeof(UnityEngine.Ray))(L, index, null); } } public void UpdateUnityEngineRay(RealStatePtr L, int index, UnityEngine.Ray val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRay_TypeID) { throw new Exception("invalid userdata for UnityEngine.Ray"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, val)) { throw new Exception("pack fail for UnityEngine.Ray ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineBounds_TypeID = -1; public void PushUnityEngineBounds(RealStatePtr L, UnityEngine.Bounds val) { if (UnityEngineBounds_TypeID == -1) { bool is_first; UnityEngineBounds_TypeID = getTypeId(L, typeof(UnityEngine.Bounds), out is_first); } IntPtr buff = LuaAPI.xlua_pushstruct(L, 24, UnityEngineBounds_TypeID); if (!CopyByValue.Pack(buff, 0, val)) { throw new Exception("pack fail fail for UnityEngine.Bounds ,value="+val); } } public void Get(RealStatePtr L, int index, out UnityEngine.Bounds val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineBounds_TypeID) { throw new Exception("invalid userdata for UnityEngine.Bounds"); } IntPtr buff = LuaAPI.lua_touserdata(L, index);if (!CopyByValue.UnPack(buff, 0, out val)) { throw new Exception("unpack fail for UnityEngine.Bounds"); } } else if (type ==LuaTypes.LUA_TTABLE) { CopyByValue.UnPack(this, L, index, out val); } else { val = (UnityEngine.Bounds)objectCasters.GetCaster(typeof(UnityEngine.Bounds))(L, index, null); } } public void UpdateUnityEngineBounds(RealStatePtr L, int index, UnityEngine.Bounds val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineBounds_TypeID) { throw new Exception("invalid userdata for UnityEngine.Bounds"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, val)) { throw new Exception("pack fail for UnityEngine.Bounds ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineRay2D_TypeID = -1; public void PushUnityEngineRay2D(RealStatePtr L, UnityEngine.Ray2D val) { if (UnityEngineRay2D_TypeID == -1) { bool is_first; UnityEngineRay2D_TypeID = getTypeId(L, typeof(UnityEngine.Ray2D), out is_first); } IntPtr buff = LuaAPI.xlua_pushstruct(L, 16, UnityEngineRay2D_TypeID); if (!CopyByValue.Pack(buff, 0, val)) { throw new Exception("pack fail fail for UnityEngine.Ray2D ,value="+val); } } public void Get(RealStatePtr L, int index, out UnityEngine.Ray2D val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRay2D_TypeID) { throw new Exception("invalid userdata for UnityEngine.Ray2D"); } IntPtr buff = LuaAPI.lua_touserdata(L, index);if (!CopyByValue.UnPack(buff, 0, out val)) { throw new Exception("unpack fail for UnityEngine.Ray2D"); } } else if (type ==LuaTypes.LUA_TTABLE) { CopyByValue.UnPack(this, L, index, out val); } else { val = (UnityEngine.Ray2D)objectCasters.GetCaster(typeof(UnityEngine.Ray2D))(L, index, null); } } public void UpdateUnityEngineRay2D(RealStatePtr L, int index, UnityEngine.Ray2D val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRay2D_TypeID) { throw new Exception("invalid userdata for UnityEngine.Ray2D"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, val)) { throw new Exception("pack fail for UnityEngine.Ray2D ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int AdFormat_TypeID = -1; int AdFormat_EnumRef = -1; public void PushAdFormat(RealStatePtr L, AdFormat val) { if (AdFormat_TypeID == -1) { bool is_first; AdFormat_TypeID = getTypeId(L, typeof(AdFormat), out is_first); if (AdFormat_EnumRef == -1) { Utils.LoadCSTable(L, typeof(AdFormat)); AdFormat_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, AdFormat_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, AdFormat_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for AdFormat ,value="+val); } LuaAPI.lua_getref(L, AdFormat_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out AdFormat val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != AdFormat_TypeID) { throw new Exception("invalid userdata for AdFormat"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for AdFormat"); } val = (AdFormat)e; } else { val = (AdFormat)objectCasters.GetCaster(typeof(AdFormat))(L, index, null); } } public void UpdateAdFormat(RealStatePtr L, int index, AdFormat val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != AdFormat_TypeID) { throw new Exception("invalid userdata for AdFormat"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for AdFormat ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int IronSourceBannerPosition_TypeID = -1; int IronSourceBannerPosition_EnumRef = -1; public void PushIronSourceBannerPosition(RealStatePtr L, IronSourceBannerPosition val) { if (IronSourceBannerPosition_TypeID == -1) { bool is_first; IronSourceBannerPosition_TypeID = getTypeId(L, typeof(IronSourceBannerPosition), out is_first); if (IronSourceBannerPosition_EnumRef == -1) { Utils.LoadCSTable(L, typeof(IronSourceBannerPosition)); IronSourceBannerPosition_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, IronSourceBannerPosition_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, IronSourceBannerPosition_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for IronSourceBannerPosition ,value="+val); } LuaAPI.lua_getref(L, IronSourceBannerPosition_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out IronSourceBannerPosition val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != IronSourceBannerPosition_TypeID) { throw new Exception("invalid userdata for IronSourceBannerPosition"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for IronSourceBannerPosition"); } val = (IronSourceBannerPosition)e; } else { val = (IronSourceBannerPosition)objectCasters.GetCaster(typeof(IronSourceBannerPosition))(L, index, null); } } public void UpdateIronSourceBannerPosition(RealStatePtr L, int index, IronSourceBannerPosition val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != IronSourceBannerPosition_TypeID) { throw new Exception("invalid userdata for IronSourceBannerPosition"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for IronSourceBannerPosition ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ISAdQualityDeviceIdType_TypeID = -1; int ISAdQualityDeviceIdType_EnumRef = -1; public void PushISAdQualityDeviceIdType(RealStatePtr L, ISAdQualityDeviceIdType val) { if (ISAdQualityDeviceIdType_TypeID == -1) { bool is_first; ISAdQualityDeviceIdType_TypeID = getTypeId(L, typeof(ISAdQualityDeviceIdType), out is_first); if (ISAdQualityDeviceIdType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(ISAdQualityDeviceIdType)); ISAdQualityDeviceIdType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ISAdQualityDeviceIdType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ISAdQualityDeviceIdType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for ISAdQualityDeviceIdType ,value="+val); } LuaAPI.lua_getref(L, ISAdQualityDeviceIdType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out ISAdQualityDeviceIdType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityDeviceIdType_TypeID) { throw new Exception("invalid userdata for ISAdQualityDeviceIdType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for ISAdQualityDeviceIdType"); } val = (ISAdQualityDeviceIdType)e; } else { val = (ISAdQualityDeviceIdType)objectCasters.GetCaster(typeof(ISAdQualityDeviceIdType))(L, index, null); } } public void UpdateISAdQualityDeviceIdType(RealStatePtr L, int index, ISAdQualityDeviceIdType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityDeviceIdType_TypeID) { throw new Exception("invalid userdata for ISAdQualityDeviceIdType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for ISAdQualityDeviceIdType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ISAdQualityAdType_TypeID = -1; int ISAdQualityAdType_EnumRef = -1; public void PushISAdQualityAdType(RealStatePtr L, ISAdQualityAdType val) { if (ISAdQualityAdType_TypeID == -1) { bool is_first; ISAdQualityAdType_TypeID = getTypeId(L, typeof(ISAdQualityAdType), out is_first); if (ISAdQualityAdType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(ISAdQualityAdType)); ISAdQualityAdType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ISAdQualityAdType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ISAdQualityAdType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for ISAdQualityAdType ,value="+val); } LuaAPI.lua_getref(L, ISAdQualityAdType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out ISAdQualityAdType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityAdType_TypeID) { throw new Exception("invalid userdata for ISAdQualityAdType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for ISAdQualityAdType"); } val = (ISAdQualityAdType)e; } else { val = (ISAdQualityAdType)objectCasters.GetCaster(typeof(ISAdQualityAdType))(L, index, null); } } public void UpdateISAdQualityAdType(RealStatePtr L, int index, ISAdQualityAdType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityAdType_TypeID) { throw new Exception("invalid userdata for ISAdQualityAdType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for ISAdQualityAdType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ISAdQualityInitError_TypeID = -1; int ISAdQualityInitError_EnumRef = -1; public void PushISAdQualityInitError(RealStatePtr L, ISAdQualityInitError val) { if (ISAdQualityInitError_TypeID == -1) { bool is_first; ISAdQualityInitError_TypeID = getTypeId(L, typeof(ISAdQualityInitError), out is_first); if (ISAdQualityInitError_EnumRef == -1) { Utils.LoadCSTable(L, typeof(ISAdQualityInitError)); ISAdQualityInitError_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ISAdQualityInitError_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ISAdQualityInitError_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for ISAdQualityInitError ,value="+val); } LuaAPI.lua_getref(L, ISAdQualityInitError_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out ISAdQualityInitError val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityInitError_TypeID) { throw new Exception("invalid userdata for ISAdQualityInitError"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for ISAdQualityInitError"); } val = (ISAdQualityInitError)e; } else { val = (ISAdQualityInitError)objectCasters.GetCaster(typeof(ISAdQualityInitError))(L, index, null); } } public void UpdateISAdQualityInitError(RealStatePtr L, int index, ISAdQualityInitError val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityInitError_TypeID) { throw new Exception("invalid userdata for ISAdQualityInitError"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for ISAdQualityInitError ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ISAdQualityLogLevel_TypeID = -1; int ISAdQualityLogLevel_EnumRef = -1; public void PushISAdQualityLogLevel(RealStatePtr L, ISAdQualityLogLevel val) { if (ISAdQualityLogLevel_TypeID == -1) { bool is_first; ISAdQualityLogLevel_TypeID = getTypeId(L, typeof(ISAdQualityLogLevel), out is_first); if (ISAdQualityLogLevel_EnumRef == -1) { Utils.LoadCSTable(L, typeof(ISAdQualityLogLevel)); ISAdQualityLogLevel_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ISAdQualityLogLevel_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ISAdQualityLogLevel_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for ISAdQualityLogLevel ,value="+val); } LuaAPI.lua_getref(L, ISAdQualityLogLevel_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out ISAdQualityLogLevel val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityLogLevel_TypeID) { throw new Exception("invalid userdata for ISAdQualityLogLevel"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for ISAdQualityLogLevel"); } val = (ISAdQualityLogLevel)e; } else { val = (ISAdQualityLogLevel)objectCasters.GetCaster(typeof(ISAdQualityLogLevel))(L, index, null); } } public void UpdateISAdQualityLogLevel(RealStatePtr L, int index, ISAdQualityLogLevel val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityLogLevel_TypeID) { throw new Exception("invalid userdata for ISAdQualityLogLevel"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for ISAdQualityLogLevel ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ISAdQualityMediationNetwork_TypeID = -1; int ISAdQualityMediationNetwork_EnumRef = -1; public void PushISAdQualityMediationNetwork(RealStatePtr L, ISAdQualityMediationNetwork val) { if (ISAdQualityMediationNetwork_TypeID == -1) { bool is_first; ISAdQualityMediationNetwork_TypeID = getTypeId(L, typeof(ISAdQualityMediationNetwork), out is_first); if (ISAdQualityMediationNetwork_EnumRef == -1) { Utils.LoadCSTable(L, typeof(ISAdQualityMediationNetwork)); ISAdQualityMediationNetwork_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ISAdQualityMediationNetwork_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ISAdQualityMediationNetwork_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for ISAdQualityMediationNetwork ,value="+val); } LuaAPI.lua_getref(L, ISAdQualityMediationNetwork_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out ISAdQualityMediationNetwork val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityMediationNetwork_TypeID) { throw new Exception("invalid userdata for ISAdQualityMediationNetwork"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for ISAdQualityMediationNetwork"); } val = (ISAdQualityMediationNetwork)e; } else { val = (ISAdQualityMediationNetwork)objectCasters.GetCaster(typeof(ISAdQualityMediationNetwork))(L, index, null); } } public void UpdateISAdQualityMediationNetwork(RealStatePtr L, int index, ISAdQualityMediationNetwork val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityMediationNetwork_TypeID) { throw new Exception("invalid userdata for ISAdQualityMediationNetwork"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for ISAdQualityMediationNetwork ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIImageSheetAnimationAnimationType_TypeID = -1; int UIImageSheetAnimationAnimationType_EnumRef = -1; public void PushUIImageSheetAnimationAnimationType(RealStatePtr L, UIImageSheetAnimation.AnimationType val) { if (UIImageSheetAnimationAnimationType_TypeID == -1) { bool is_first; UIImageSheetAnimationAnimationType_TypeID = getTypeId(L, typeof(UIImageSheetAnimation.AnimationType), out is_first); if (UIImageSheetAnimationAnimationType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIImageSheetAnimation.AnimationType)); UIImageSheetAnimationAnimationType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIImageSheetAnimationAnimationType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIImageSheetAnimationAnimationType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIImageSheetAnimation.AnimationType ,value="+val); } LuaAPI.lua_getref(L, UIImageSheetAnimationAnimationType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UIImageSheetAnimation.AnimationType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIImageSheetAnimationAnimationType_TypeID) { throw new Exception("invalid userdata for UIImageSheetAnimation.AnimationType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIImageSheetAnimation.AnimationType"); } val = (UIImageSheetAnimation.AnimationType)e; } else { val = (UIImageSheetAnimation.AnimationType)objectCasters.GetCaster(typeof(UIImageSheetAnimation.AnimationType))(L, index, null); } } public void UpdateUIImageSheetAnimationAnimationType(RealStatePtr L, int index, UIImageSheetAnimation.AnimationType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIImageSheetAnimationAnimationType_TypeID) { throw new Exception("invalid userdata for UIImageSheetAnimation.AnimationType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIImageSheetAnimation.AnimationType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIImageSheetAnimationTimeType_TypeID = -1; int UIImageSheetAnimationTimeType_EnumRef = -1; public void PushUIImageSheetAnimationTimeType(RealStatePtr L, UIImageSheetAnimation.TimeType val) { if (UIImageSheetAnimationTimeType_TypeID == -1) { bool is_first; UIImageSheetAnimationTimeType_TypeID = getTypeId(L, typeof(UIImageSheetAnimation.TimeType), out is_first); if (UIImageSheetAnimationTimeType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIImageSheetAnimation.TimeType)); UIImageSheetAnimationTimeType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIImageSheetAnimationTimeType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIImageSheetAnimationTimeType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIImageSheetAnimation.TimeType ,value="+val); } LuaAPI.lua_getref(L, UIImageSheetAnimationTimeType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UIImageSheetAnimation.TimeType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIImageSheetAnimationTimeType_TypeID) { throw new Exception("invalid userdata for UIImageSheetAnimation.TimeType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIImageSheetAnimation.TimeType"); } val = (UIImageSheetAnimation.TimeType)e; } else { val = (UIImageSheetAnimation.TimeType)objectCasters.GetCaster(typeof(UIImageSheetAnimation.TimeType))(L, index, null); } } public void UpdateUIImageSheetAnimationTimeType(RealStatePtr L, int index, UIImageSheetAnimation.TimeType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIImageSheetAnimationTimeType_TypeID) { throw new Exception("invalid userdata for UIImageSheetAnimation.TimeType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIImageSheetAnimation.TimeType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIImageSheetAnimationStartFrameType_TypeID = -1; int UIImageSheetAnimationStartFrameType_EnumRef = -1; public void PushUIImageSheetAnimationStartFrameType(RealStatePtr L, UIImageSheetAnimation.StartFrameType val) { if (UIImageSheetAnimationStartFrameType_TypeID == -1) { bool is_first; UIImageSheetAnimationStartFrameType_TypeID = getTypeId(L, typeof(UIImageSheetAnimation.StartFrameType), out is_first); if (UIImageSheetAnimationStartFrameType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIImageSheetAnimation.StartFrameType)); UIImageSheetAnimationStartFrameType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIImageSheetAnimationStartFrameType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIImageSheetAnimationStartFrameType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIImageSheetAnimation.StartFrameType ,value="+val); } LuaAPI.lua_getref(L, UIImageSheetAnimationStartFrameType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UIImageSheetAnimation.StartFrameType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIImageSheetAnimationStartFrameType_TypeID) { throw new Exception("invalid userdata for UIImageSheetAnimation.StartFrameType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIImageSheetAnimation.StartFrameType"); } val = (UIImageSheetAnimation.StartFrameType)e; } else { val = (UIImageSheetAnimation.StartFrameType)objectCasters.GetCaster(typeof(UIImageSheetAnimation.StartFrameType))(L, index, null); } } public void UpdateUIImageSheetAnimationStartFrameType(RealStatePtr L, int index, UIImageSheetAnimation.StartFrameType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIImageSheetAnimationStartFrameType_TypeID) { throw new Exception("invalid userdata for UIImageSheetAnimation.StartFrameType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIImageSheetAnimation.StartFrameType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int SystemReflectionBindingFlags_TypeID = -1; int SystemReflectionBindingFlags_EnumRef = -1; public void PushSystemReflectionBindingFlags(RealStatePtr L, System.Reflection.BindingFlags val) { if (SystemReflectionBindingFlags_TypeID == -1) { bool is_first; SystemReflectionBindingFlags_TypeID = getTypeId(L, typeof(System.Reflection.BindingFlags), out is_first); if (SystemReflectionBindingFlags_EnumRef == -1) { Utils.LoadCSTable(L, typeof(System.Reflection.BindingFlags)); SystemReflectionBindingFlags_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, SystemReflectionBindingFlags_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, SystemReflectionBindingFlags_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for System.Reflection.BindingFlags ,value="+val); } LuaAPI.lua_getref(L, SystemReflectionBindingFlags_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out System.Reflection.BindingFlags val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != SystemReflectionBindingFlags_TypeID) { throw new Exception("invalid userdata for System.Reflection.BindingFlags"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for System.Reflection.BindingFlags"); } val = (System.Reflection.BindingFlags)e; } else { val = (System.Reflection.BindingFlags)objectCasters.GetCaster(typeof(System.Reflection.BindingFlags))(L, index, null); } } public void UpdateSystemReflectionBindingFlags(RealStatePtr L, int index, System.Reflection.BindingFlags val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != SystemReflectionBindingFlags_TypeID) { throw new Exception("invalid userdata for System.Reflection.BindingFlags"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for System.Reflection.BindingFlags ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int SystemDayOfWeek_TypeID = -1; int SystemDayOfWeek_EnumRef = -1; public void PushSystemDayOfWeek(RealStatePtr L, System.DayOfWeek val) { if (SystemDayOfWeek_TypeID == -1) { bool is_first; SystemDayOfWeek_TypeID = getTypeId(L, typeof(System.DayOfWeek), out is_first); if (SystemDayOfWeek_EnumRef == -1) { Utils.LoadCSTable(L, typeof(System.DayOfWeek)); SystemDayOfWeek_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, SystemDayOfWeek_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, SystemDayOfWeek_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for System.DayOfWeek ,value="+val); } LuaAPI.lua_getref(L, SystemDayOfWeek_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out System.DayOfWeek val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != SystemDayOfWeek_TypeID) { throw new Exception("invalid userdata for System.DayOfWeek"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for System.DayOfWeek"); } val = (System.DayOfWeek)e; } else { val = (System.DayOfWeek)objectCasters.GetCaster(typeof(System.DayOfWeek))(L, index, null); } } public void UpdateSystemDayOfWeek(RealStatePtr L, int index, System.DayOfWeek val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != SystemDayOfWeek_TypeID) { throw new Exception("invalid userdata for System.DayOfWeek"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for System.DayOfWeek ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int SystemNetNetworkInformationIPStatus_TypeID = -1; int SystemNetNetworkInformationIPStatus_EnumRef = -1; public void PushSystemNetNetworkInformationIPStatus(RealStatePtr L, System.Net.NetworkInformation.IPStatus val) { if (SystemNetNetworkInformationIPStatus_TypeID == -1) { bool is_first; SystemNetNetworkInformationIPStatus_TypeID = getTypeId(L, typeof(System.Net.NetworkInformation.IPStatus), out is_first); if (SystemNetNetworkInformationIPStatus_EnumRef == -1) { Utils.LoadCSTable(L, typeof(System.Net.NetworkInformation.IPStatus)); SystemNetNetworkInformationIPStatus_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, SystemNetNetworkInformationIPStatus_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, SystemNetNetworkInformationIPStatus_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for System.Net.NetworkInformation.IPStatus ,value="+val); } LuaAPI.lua_getref(L, SystemNetNetworkInformationIPStatus_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out System.Net.NetworkInformation.IPStatus val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != SystemNetNetworkInformationIPStatus_TypeID) { throw new Exception("invalid userdata for System.Net.NetworkInformation.IPStatus"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for System.Net.NetworkInformation.IPStatus"); } val = (System.Net.NetworkInformation.IPStatus)e; } else { val = (System.Net.NetworkInformation.IPStatus)objectCasters.GetCaster(typeof(System.Net.NetworkInformation.IPStatus))(L, index, null); } } public void UpdateSystemNetNetworkInformationIPStatus(RealStatePtr L, int index, System.Net.NetworkInformation.IPStatus val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != SystemNetNetworkInformationIPStatus_TypeID) { throw new Exception("invalid userdata for System.Net.NetworkInformation.IPStatus"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for System.Net.NetworkInformation.IPStatus ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineCameraFieldOfViewAxis_TypeID = -1; int UnityEngineCameraFieldOfViewAxis_EnumRef = -1; public void PushUnityEngineCameraFieldOfViewAxis(RealStatePtr L, UnityEngine.Camera.FieldOfViewAxis val) { if (UnityEngineCameraFieldOfViewAxis_TypeID == -1) { bool is_first; UnityEngineCameraFieldOfViewAxis_TypeID = getTypeId(L, typeof(UnityEngine.Camera.FieldOfViewAxis), out is_first); if (UnityEngineCameraFieldOfViewAxis_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.Camera.FieldOfViewAxis)); UnityEngineCameraFieldOfViewAxis_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineCameraFieldOfViewAxis_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineCameraFieldOfViewAxis_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.Camera.FieldOfViewAxis ,value="+val); } LuaAPI.lua_getref(L, UnityEngineCameraFieldOfViewAxis_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.Camera.FieldOfViewAxis val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraFieldOfViewAxis_TypeID) { throw new Exception("invalid userdata for UnityEngine.Camera.FieldOfViewAxis"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.Camera.FieldOfViewAxis"); } val = (UnityEngine.Camera.FieldOfViewAxis)e; } else { val = (UnityEngine.Camera.FieldOfViewAxis)objectCasters.GetCaster(typeof(UnityEngine.Camera.FieldOfViewAxis))(L, index, null); } } public void UpdateUnityEngineCameraFieldOfViewAxis(RealStatePtr L, int index, UnityEngine.Camera.FieldOfViewAxis val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraFieldOfViewAxis_TypeID) { throw new Exception("invalid userdata for UnityEngine.Camera.FieldOfViewAxis"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.Camera.FieldOfViewAxis ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineCameraRenderRequestMode_TypeID = -1; int UnityEngineCameraRenderRequestMode_EnumRef = -1; public void PushUnityEngineCameraRenderRequestMode(RealStatePtr L, UnityEngine.Camera.RenderRequestMode val) { if (UnityEngineCameraRenderRequestMode_TypeID == -1) { bool is_first; UnityEngineCameraRenderRequestMode_TypeID = getTypeId(L, typeof(UnityEngine.Camera.RenderRequestMode), out is_first); if (UnityEngineCameraRenderRequestMode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.Camera.RenderRequestMode)); UnityEngineCameraRenderRequestMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineCameraRenderRequestMode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineCameraRenderRequestMode_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.Camera.RenderRequestMode ,value="+val); } LuaAPI.lua_getref(L, UnityEngineCameraRenderRequestMode_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.Camera.RenderRequestMode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraRenderRequestMode_TypeID) { throw new Exception("invalid userdata for UnityEngine.Camera.RenderRequestMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.Camera.RenderRequestMode"); } val = (UnityEngine.Camera.RenderRequestMode)e; } else { val = (UnityEngine.Camera.RenderRequestMode)objectCasters.GetCaster(typeof(UnityEngine.Camera.RenderRequestMode))(L, index, null); } } public void UpdateUnityEngineCameraRenderRequestMode(RealStatePtr L, int index, UnityEngine.Camera.RenderRequestMode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraRenderRequestMode_TypeID) { throw new Exception("invalid userdata for UnityEngine.Camera.RenderRequestMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.Camera.RenderRequestMode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineCameraRenderRequestOutputSpace_TypeID = -1; int UnityEngineCameraRenderRequestOutputSpace_EnumRef = -1; public void PushUnityEngineCameraRenderRequestOutputSpace(RealStatePtr L, UnityEngine.Camera.RenderRequestOutputSpace val) { if (UnityEngineCameraRenderRequestOutputSpace_TypeID == -1) { bool is_first; UnityEngineCameraRenderRequestOutputSpace_TypeID = getTypeId(L, typeof(UnityEngine.Camera.RenderRequestOutputSpace), out is_first); if (UnityEngineCameraRenderRequestOutputSpace_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.Camera.RenderRequestOutputSpace)); UnityEngineCameraRenderRequestOutputSpace_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineCameraRenderRequestOutputSpace_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineCameraRenderRequestOutputSpace_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.Camera.RenderRequestOutputSpace ,value="+val); } LuaAPI.lua_getref(L, UnityEngineCameraRenderRequestOutputSpace_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.Camera.RenderRequestOutputSpace val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraRenderRequestOutputSpace_TypeID) { throw new Exception("invalid userdata for UnityEngine.Camera.RenderRequestOutputSpace"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.Camera.RenderRequestOutputSpace"); } val = (UnityEngine.Camera.RenderRequestOutputSpace)e; } else { val = (UnityEngine.Camera.RenderRequestOutputSpace)objectCasters.GetCaster(typeof(UnityEngine.Camera.RenderRequestOutputSpace))(L, index, null); } } public void UpdateUnityEngineCameraRenderRequestOutputSpace(RealStatePtr L, int index, UnityEngine.Camera.RenderRequestOutputSpace val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraRenderRequestOutputSpace_TypeID) { throw new Exception("invalid userdata for UnityEngine.Camera.RenderRequestOutputSpace"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.Camera.RenderRequestOutputSpace ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineRenderingLightShadowResolution_TypeID = -1; int UnityEngineRenderingLightShadowResolution_EnumRef = -1; public void PushUnityEngineRenderingLightShadowResolution(RealStatePtr L, UnityEngine.Rendering.LightShadowResolution val) { if (UnityEngineRenderingLightShadowResolution_TypeID == -1) { bool is_first; UnityEngineRenderingLightShadowResolution_TypeID = getTypeId(L, typeof(UnityEngine.Rendering.LightShadowResolution), out is_first); if (UnityEngineRenderingLightShadowResolution_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.Rendering.LightShadowResolution)); UnityEngineRenderingLightShadowResolution_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRenderingLightShadowResolution_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRenderingLightShadowResolution_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.Rendering.LightShadowResolution ,value="+val); } LuaAPI.lua_getref(L, UnityEngineRenderingLightShadowResolution_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.Rendering.LightShadowResolution val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderingLightShadowResolution_TypeID) { throw new Exception("invalid userdata for UnityEngine.Rendering.LightShadowResolution"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.Rendering.LightShadowResolution"); } val = (UnityEngine.Rendering.LightShadowResolution)e; } else { val = (UnityEngine.Rendering.LightShadowResolution)objectCasters.GetCaster(typeof(UnityEngine.Rendering.LightShadowResolution))(L, index, null); } } public void UpdateUnityEngineRenderingLightShadowResolution(RealStatePtr L, int index, UnityEngine.Rendering.LightShadowResolution val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderingLightShadowResolution_TypeID) { throw new Exception("invalid userdata for UnityEngine.Rendering.LightShadowResolution"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.Rendering.LightShadowResolution ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineRenderTextureFormat_TypeID = -1; int UnityEngineRenderTextureFormat_EnumRef = -1; public void PushUnityEngineRenderTextureFormat(RealStatePtr L, UnityEngine.RenderTextureFormat val) { if (UnityEngineRenderTextureFormat_TypeID == -1) { bool is_first; UnityEngineRenderTextureFormat_TypeID = getTypeId(L, typeof(UnityEngine.RenderTextureFormat), out is_first); if (UnityEngineRenderTextureFormat_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.RenderTextureFormat)); UnityEngineRenderTextureFormat_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRenderTextureFormat_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRenderTextureFormat_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.RenderTextureFormat ,value="+val); } LuaAPI.lua_getref(L, UnityEngineRenderTextureFormat_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.RenderTextureFormat val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderTextureFormat_TypeID) { throw new Exception("invalid userdata for UnityEngine.RenderTextureFormat"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.RenderTextureFormat"); } val = (UnityEngine.RenderTextureFormat)e; } else { val = (UnityEngine.RenderTextureFormat)objectCasters.GetCaster(typeof(UnityEngine.RenderTextureFormat))(L, index, null); } } public void UpdateUnityEngineRenderTextureFormat(RealStatePtr L, int index, UnityEngine.RenderTextureFormat val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderTextureFormat_TypeID) { throw new Exception("invalid userdata for UnityEngine.RenderTextureFormat"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.RenderTextureFormat ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineRenderTextureReadWrite_TypeID = -1; int UnityEngineRenderTextureReadWrite_EnumRef = -1; public void PushUnityEngineRenderTextureReadWrite(RealStatePtr L, UnityEngine.RenderTextureReadWrite val) { if (UnityEngineRenderTextureReadWrite_TypeID == -1) { bool is_first; UnityEngineRenderTextureReadWrite_TypeID = getTypeId(L, typeof(UnityEngine.RenderTextureReadWrite), out is_first); if (UnityEngineRenderTextureReadWrite_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.RenderTextureReadWrite)); UnityEngineRenderTextureReadWrite_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRenderTextureReadWrite_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRenderTextureReadWrite_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.RenderTextureReadWrite ,value="+val); } LuaAPI.lua_getref(L, UnityEngineRenderTextureReadWrite_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.RenderTextureReadWrite val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderTextureReadWrite_TypeID) { throw new Exception("invalid userdata for UnityEngine.RenderTextureReadWrite"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.RenderTextureReadWrite"); } val = (UnityEngine.RenderTextureReadWrite)e; } else { val = (UnityEngine.RenderTextureReadWrite)objectCasters.GetCaster(typeof(UnityEngine.RenderTextureReadWrite))(L, index, null); } } public void UpdateUnityEngineRenderTextureReadWrite(RealStatePtr L, int index, UnityEngine.RenderTextureReadWrite val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderTextureReadWrite_TypeID) { throw new Exception("invalid userdata for UnityEngine.RenderTextureReadWrite"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.RenderTextureReadWrite ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineRigidbodyConstraints_TypeID = -1; int UnityEngineRigidbodyConstraints_EnumRef = -1; public void PushUnityEngineRigidbodyConstraints(RealStatePtr L, UnityEngine.RigidbodyConstraints val) { if (UnityEngineRigidbodyConstraints_TypeID == -1) { bool is_first; UnityEngineRigidbodyConstraints_TypeID = getTypeId(L, typeof(UnityEngine.RigidbodyConstraints), out is_first); if (UnityEngineRigidbodyConstraints_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.RigidbodyConstraints)); UnityEngineRigidbodyConstraints_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRigidbodyConstraints_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRigidbodyConstraints_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.RigidbodyConstraints ,value="+val); } LuaAPI.lua_getref(L, UnityEngineRigidbodyConstraints_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.RigidbodyConstraints val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRigidbodyConstraints_TypeID) { throw new Exception("invalid userdata for UnityEngine.RigidbodyConstraints"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.RigidbodyConstraints"); } val = (UnityEngine.RigidbodyConstraints)e; } else { val = (UnityEngine.RigidbodyConstraints)objectCasters.GetCaster(typeof(UnityEngine.RigidbodyConstraints))(L, index, null); } } public void UpdateUnityEngineRigidbodyConstraints(RealStatePtr L, int index, UnityEngine.RigidbodyConstraints val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRigidbodyConstraints_TypeID) { throw new Exception("invalid userdata for UnityEngine.RigidbodyConstraints"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.RigidbodyConstraints ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineTransparencySortMode_TypeID = -1; int UnityEngineTransparencySortMode_EnumRef = -1; public void PushUnityEngineTransparencySortMode(RealStatePtr L, UnityEngine.TransparencySortMode val) { if (UnityEngineTransparencySortMode_TypeID == -1) { bool is_first; UnityEngineTransparencySortMode_TypeID = getTypeId(L, typeof(UnityEngine.TransparencySortMode), out is_first); if (UnityEngineTransparencySortMode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.TransparencySortMode)); UnityEngineTransparencySortMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineTransparencySortMode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineTransparencySortMode_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.TransparencySortMode ,value="+val); } LuaAPI.lua_getref(L, UnityEngineTransparencySortMode_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.TransparencySortMode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineTransparencySortMode_TypeID) { throw new Exception("invalid userdata for UnityEngine.TransparencySortMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.TransparencySortMode"); } val = (UnityEngine.TransparencySortMode)e; } else { val = (UnityEngine.TransparencySortMode)objectCasters.GetCaster(typeof(UnityEngine.TransparencySortMode))(L, index, null); } } public void UpdateUnityEngineTransparencySortMode(RealStatePtr L, int index, UnityEngine.TransparencySortMode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineTransparencySortMode_TypeID) { throw new Exception("invalid userdata for UnityEngine.TransparencySortMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.TransparencySortMode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineRectTransformAxis_TypeID = -1; int UnityEngineRectTransformAxis_EnumRef = -1; public void PushUnityEngineRectTransformAxis(RealStatePtr L, UnityEngine.RectTransform.Axis val) { if (UnityEngineRectTransformAxis_TypeID == -1) { bool is_first; UnityEngineRectTransformAxis_TypeID = getTypeId(L, typeof(UnityEngine.RectTransform.Axis), out is_first); if (UnityEngineRectTransformAxis_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.RectTransform.Axis)); UnityEngineRectTransformAxis_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRectTransformAxis_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRectTransformAxis_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.RectTransform.Axis ,value="+val); } LuaAPI.lua_getref(L, UnityEngineRectTransformAxis_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.RectTransform.Axis val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRectTransformAxis_TypeID) { throw new Exception("invalid userdata for UnityEngine.RectTransform.Axis"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.RectTransform.Axis"); } val = (UnityEngine.RectTransform.Axis)e; } else { val = (UnityEngine.RectTransform.Axis)objectCasters.GetCaster(typeof(UnityEngine.RectTransform.Axis))(L, index, null); } } public void UpdateUnityEngineRectTransformAxis(RealStatePtr L, int index, UnityEngine.RectTransform.Axis val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRectTransformAxis_TypeID) { throw new Exception("invalid userdata for UnityEngine.RectTransform.Axis"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.RectTransform.Axis ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineRectTransformEdge_TypeID = -1; int UnityEngineRectTransformEdge_EnumRef = -1; public void PushUnityEngineRectTransformEdge(RealStatePtr L, UnityEngine.RectTransform.Edge val) { if (UnityEngineRectTransformEdge_TypeID == -1) { bool is_first; UnityEngineRectTransformEdge_TypeID = getTypeId(L, typeof(UnityEngine.RectTransform.Edge), out is_first); if (UnityEngineRectTransformEdge_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.RectTransform.Edge)); UnityEngineRectTransformEdge_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRectTransformEdge_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRectTransformEdge_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.RectTransform.Edge ,value="+val); } LuaAPI.lua_getref(L, UnityEngineRectTransformEdge_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.RectTransform.Edge val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRectTransformEdge_TypeID) { throw new Exception("invalid userdata for UnityEngine.RectTransform.Edge"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.RectTransform.Edge"); } val = (UnityEngine.RectTransform.Edge)e; } else { val = (UnityEngine.RectTransform.Edge)objectCasters.GetCaster(typeof(UnityEngine.RectTransform.Edge))(L, index, null); } } public void UpdateUnityEngineRectTransformEdge(RealStatePtr L, int index, UnityEngine.RectTransform.Edge val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRectTransformEdge_TypeID) { throw new Exception("invalid userdata for UnityEngine.RectTransform.Edge"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.RectTransform.Edge ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineAnimatorCullingMode_TypeID = -1; int UnityEngineAnimatorCullingMode_EnumRef = -1; public void PushUnityEngineAnimatorCullingMode(RealStatePtr L, UnityEngine.AnimatorCullingMode val) { if (UnityEngineAnimatorCullingMode_TypeID == -1) { bool is_first; UnityEngineAnimatorCullingMode_TypeID = getTypeId(L, typeof(UnityEngine.AnimatorCullingMode), out is_first); if (UnityEngineAnimatorCullingMode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.AnimatorCullingMode)); UnityEngineAnimatorCullingMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineAnimatorCullingMode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineAnimatorCullingMode_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.AnimatorCullingMode ,value="+val); } LuaAPI.lua_getref(L, UnityEngineAnimatorCullingMode_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.AnimatorCullingMode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineAnimatorCullingMode_TypeID) { throw new Exception("invalid userdata for UnityEngine.AnimatorCullingMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.AnimatorCullingMode"); } val = (UnityEngine.AnimatorCullingMode)e; } else { val = (UnityEngine.AnimatorCullingMode)objectCasters.GetCaster(typeof(UnityEngine.AnimatorCullingMode))(L, index, null); } } public void UpdateUnityEngineAnimatorCullingMode(RealStatePtr L, int index, UnityEngine.AnimatorCullingMode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineAnimatorCullingMode_TypeID) { throw new Exception("invalid userdata for UnityEngine.AnimatorCullingMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.AnimatorCullingMode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineSystemLanguage_TypeID = -1; int UnityEngineSystemLanguage_EnumRef = -1; public void PushUnityEngineSystemLanguage(RealStatePtr L, UnityEngine.SystemLanguage val) { if (UnityEngineSystemLanguage_TypeID == -1) { bool is_first; UnityEngineSystemLanguage_TypeID = getTypeId(L, typeof(UnityEngine.SystemLanguage), out is_first); if (UnityEngineSystemLanguage_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.SystemLanguage)); UnityEngineSystemLanguage_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineSystemLanguage_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineSystemLanguage_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.SystemLanguage ,value="+val); } LuaAPI.lua_getref(L, UnityEngineSystemLanguage_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.SystemLanguage val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineSystemLanguage_TypeID) { throw new Exception("invalid userdata for UnityEngine.SystemLanguage"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.SystemLanguage"); } val = (UnityEngine.SystemLanguage)e; } else { val = (UnityEngine.SystemLanguage)objectCasters.GetCaster(typeof(UnityEngine.SystemLanguage))(L, index, null); } } public void UpdateUnityEngineSystemLanguage(RealStatePtr L, int index, UnityEngine.SystemLanguage val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineSystemLanguage_TypeID) { throw new Exception("invalid userdata for UnityEngine.SystemLanguage"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.SystemLanguage ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineRenderingShadowCastingMode_TypeID = -1; int UnityEngineRenderingShadowCastingMode_EnumRef = -1; public void PushUnityEngineRenderingShadowCastingMode(RealStatePtr L, UnityEngine.Rendering.ShadowCastingMode val) { if (UnityEngineRenderingShadowCastingMode_TypeID == -1) { bool is_first; UnityEngineRenderingShadowCastingMode_TypeID = getTypeId(L, typeof(UnityEngine.Rendering.ShadowCastingMode), out is_first); if (UnityEngineRenderingShadowCastingMode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.Rendering.ShadowCastingMode)); UnityEngineRenderingShadowCastingMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRenderingShadowCastingMode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRenderingShadowCastingMode_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.Rendering.ShadowCastingMode ,value="+val); } LuaAPI.lua_getref(L, UnityEngineRenderingShadowCastingMode_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.Rendering.ShadowCastingMode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderingShadowCastingMode_TypeID) { throw new Exception("invalid userdata for UnityEngine.Rendering.ShadowCastingMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.Rendering.ShadowCastingMode"); } val = (UnityEngine.Rendering.ShadowCastingMode)e; } else { val = (UnityEngine.Rendering.ShadowCastingMode)objectCasters.GetCaster(typeof(UnityEngine.Rendering.ShadowCastingMode))(L, index, null); } } public void UpdateUnityEngineRenderingShadowCastingMode(RealStatePtr L, int index, UnityEngine.Rendering.ShadowCastingMode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderingShadowCastingMode_TypeID) { throw new Exception("invalid userdata for UnityEngine.Rendering.ShadowCastingMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.Rendering.ShadowCastingMode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineCameraGateFitMode_TypeID = -1; int UnityEngineCameraGateFitMode_EnumRef = -1; public void PushUnityEngineCameraGateFitMode(RealStatePtr L, UnityEngine.Camera.GateFitMode val) { if (UnityEngineCameraGateFitMode_TypeID == -1) { bool is_first; UnityEngineCameraGateFitMode_TypeID = getTypeId(L, typeof(UnityEngine.Camera.GateFitMode), out is_first); if (UnityEngineCameraGateFitMode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.Camera.GateFitMode)); UnityEngineCameraGateFitMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineCameraGateFitMode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineCameraGateFitMode_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.Camera.GateFitMode ,value="+val); } LuaAPI.lua_getref(L, UnityEngineCameraGateFitMode_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.Camera.GateFitMode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraGateFitMode_TypeID) { throw new Exception("invalid userdata for UnityEngine.Camera.GateFitMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.Camera.GateFitMode"); } val = (UnityEngine.Camera.GateFitMode)e; } else { val = (UnityEngine.Camera.GateFitMode)objectCasters.GetCaster(typeof(UnityEngine.Camera.GateFitMode))(L, index, null); } } public void UpdateUnityEngineCameraGateFitMode(RealStatePtr L, int index, UnityEngine.Camera.GateFitMode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraGateFitMode_TypeID) { throw new Exception("invalid userdata for UnityEngine.Camera.GateFitMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.Camera.GateFitMode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineCameraStereoscopicEye_TypeID = -1; int UnityEngineCameraStereoscopicEye_EnumRef = -1; public void PushUnityEngineCameraStereoscopicEye(RealStatePtr L, UnityEngine.Camera.StereoscopicEye val) { if (UnityEngineCameraStereoscopicEye_TypeID == -1) { bool is_first; UnityEngineCameraStereoscopicEye_TypeID = getTypeId(L, typeof(UnityEngine.Camera.StereoscopicEye), out is_first); if (UnityEngineCameraStereoscopicEye_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.Camera.StereoscopicEye)); UnityEngineCameraStereoscopicEye_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineCameraStereoscopicEye_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineCameraStereoscopicEye_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.Camera.StereoscopicEye ,value="+val); } LuaAPI.lua_getref(L, UnityEngineCameraStereoscopicEye_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.Camera.StereoscopicEye val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraStereoscopicEye_TypeID) { throw new Exception("invalid userdata for UnityEngine.Camera.StereoscopicEye"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.Camera.StereoscopicEye"); } val = (UnityEngine.Camera.StereoscopicEye)e; } else { val = (UnityEngine.Camera.StereoscopicEye)objectCasters.GetCaster(typeof(UnityEngine.Camera.StereoscopicEye))(L, index, null); } } public void UpdateUnityEngineCameraStereoscopicEye(RealStatePtr L, int index, UnityEngine.Camera.StereoscopicEye val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraStereoscopicEye_TypeID) { throw new Exception("invalid userdata for UnityEngine.Camera.StereoscopicEye"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.Camera.StereoscopicEye ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineCameraMonoOrStereoscopicEye_TypeID = -1; int UnityEngineCameraMonoOrStereoscopicEye_EnumRef = -1; public void PushUnityEngineCameraMonoOrStereoscopicEye(RealStatePtr L, UnityEngine.Camera.MonoOrStereoscopicEye val) { if (UnityEngineCameraMonoOrStereoscopicEye_TypeID == -1) { bool is_first; UnityEngineCameraMonoOrStereoscopicEye_TypeID = getTypeId(L, typeof(UnityEngine.Camera.MonoOrStereoscopicEye), out is_first); if (UnityEngineCameraMonoOrStereoscopicEye_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.Camera.MonoOrStereoscopicEye)); UnityEngineCameraMonoOrStereoscopicEye_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineCameraMonoOrStereoscopicEye_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineCameraMonoOrStereoscopicEye_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.Camera.MonoOrStereoscopicEye ,value="+val); } LuaAPI.lua_getref(L, UnityEngineCameraMonoOrStereoscopicEye_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.Camera.MonoOrStereoscopicEye val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraMonoOrStereoscopicEye_TypeID) { throw new Exception("invalid userdata for UnityEngine.Camera.MonoOrStereoscopicEye"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.Camera.MonoOrStereoscopicEye"); } val = (UnityEngine.Camera.MonoOrStereoscopicEye)e; } else { val = (UnityEngine.Camera.MonoOrStereoscopicEye)objectCasters.GetCaster(typeof(UnityEngine.Camera.MonoOrStereoscopicEye))(L, index, null); } } public void UpdateUnityEngineCameraMonoOrStereoscopicEye(RealStatePtr L, int index, UnityEngine.Camera.MonoOrStereoscopicEye val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraMonoOrStereoscopicEye_TypeID) { throw new Exception("invalid userdata for UnityEngine.Camera.MonoOrStereoscopicEye"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.Camera.MonoOrStereoscopicEye ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineTexture2DEXRFlags_TypeID = -1; int UnityEngineTexture2DEXRFlags_EnumRef = -1; public void PushUnityEngineTexture2DEXRFlags(RealStatePtr L, UnityEngine.Texture2D.EXRFlags val) { if (UnityEngineTexture2DEXRFlags_TypeID == -1) { bool is_first; UnityEngineTexture2DEXRFlags_TypeID = getTypeId(L, typeof(UnityEngine.Texture2D.EXRFlags), out is_first); if (UnityEngineTexture2DEXRFlags_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.Texture2D.EXRFlags)); UnityEngineTexture2DEXRFlags_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineTexture2DEXRFlags_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineTexture2DEXRFlags_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.Texture2D.EXRFlags ,value="+val); } LuaAPI.lua_getref(L, UnityEngineTexture2DEXRFlags_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.Texture2D.EXRFlags val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineTexture2DEXRFlags_TypeID) { throw new Exception("invalid userdata for UnityEngine.Texture2D.EXRFlags"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.Texture2D.EXRFlags"); } val = (UnityEngine.Texture2D.EXRFlags)e; } else { val = (UnityEngine.Texture2D.EXRFlags)objectCasters.GetCaster(typeof(UnityEngine.Texture2D.EXRFlags))(L, index, null); } } public void UpdateUnityEngineTexture2DEXRFlags(RealStatePtr L, int index, UnityEngine.Texture2D.EXRFlags val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineTexture2DEXRFlags_TypeID) { throw new Exception("invalid userdata for UnityEngine.Texture2D.EXRFlags"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.Texture2D.EXRFlags ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineKeyCode_TypeID = -1; int UnityEngineKeyCode_EnumRef = -1; public void PushUnityEngineKeyCode(RealStatePtr L, UnityEngine.KeyCode val) { if (UnityEngineKeyCode_TypeID == -1) { bool is_first; UnityEngineKeyCode_TypeID = getTypeId(L, typeof(UnityEngine.KeyCode), out is_first); if (UnityEngineKeyCode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.KeyCode)); UnityEngineKeyCode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineKeyCode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineKeyCode_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.KeyCode ,value="+val); } LuaAPI.lua_getref(L, UnityEngineKeyCode_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.KeyCode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineKeyCode_TypeID) { throw new Exception("invalid userdata for UnityEngine.KeyCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.KeyCode"); } val = (UnityEngine.KeyCode)e; } else { val = (UnityEngine.KeyCode)objectCasters.GetCaster(typeof(UnityEngine.KeyCode))(L, index, null); } } public void UpdateUnityEngineKeyCode(RealStatePtr L, int index, UnityEngine.KeyCode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineKeyCode_TypeID) { throw new Exception("invalid userdata for UnityEngine.KeyCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.KeyCode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineNetworkReachability_TypeID = -1; int UnityEngineNetworkReachability_EnumRef = -1; public void PushUnityEngineNetworkReachability(RealStatePtr L, UnityEngine.NetworkReachability val) { if (UnityEngineNetworkReachability_TypeID == -1) { bool is_first; UnityEngineNetworkReachability_TypeID = getTypeId(L, typeof(UnityEngine.NetworkReachability), out is_first); if (UnityEngineNetworkReachability_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.NetworkReachability)); UnityEngineNetworkReachability_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineNetworkReachability_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineNetworkReachability_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.NetworkReachability ,value="+val); } LuaAPI.lua_getref(L, UnityEngineNetworkReachability_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.NetworkReachability val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineNetworkReachability_TypeID) { throw new Exception("invalid userdata for UnityEngine.NetworkReachability"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.NetworkReachability"); } val = (UnityEngine.NetworkReachability)e; } else { val = (UnityEngine.NetworkReachability)objectCasters.GetCaster(typeof(UnityEngine.NetworkReachability))(L, index, null); } } public void UpdateUnityEngineNetworkReachability(RealStatePtr L, int index, UnityEngine.NetworkReachability val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineNetworkReachability_TypeID) { throw new Exception("invalid userdata for UnityEngine.NetworkReachability"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.NetworkReachability ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineRuntimePlatform_TypeID = -1; int UnityEngineRuntimePlatform_EnumRef = -1; public void PushUnityEngineRuntimePlatform(RealStatePtr L, UnityEngine.RuntimePlatform val) { if (UnityEngineRuntimePlatform_TypeID == -1) { bool is_first; UnityEngineRuntimePlatform_TypeID = getTypeId(L, typeof(UnityEngine.RuntimePlatform), out is_first); if (UnityEngineRuntimePlatform_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.RuntimePlatform)); UnityEngineRuntimePlatform_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRuntimePlatform_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRuntimePlatform_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.RuntimePlatform ,value="+val); } LuaAPI.lua_getref(L, UnityEngineRuntimePlatform_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.RuntimePlatform val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRuntimePlatform_TypeID) { throw new Exception("invalid userdata for UnityEngine.RuntimePlatform"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.RuntimePlatform"); } val = (UnityEngine.RuntimePlatform)e; } else { val = (UnityEngine.RuntimePlatform)objectCasters.GetCaster(typeof(UnityEngine.RuntimePlatform))(L, index, null); } } public void UpdateUnityEngineRuntimePlatform(RealStatePtr L, int index, UnityEngine.RuntimePlatform val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRuntimePlatform_TypeID) { throw new Exception("invalid userdata for UnityEngine.RuntimePlatform"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.RuntimePlatform ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineRenderingCompareFunction_TypeID = -1; int UnityEngineRenderingCompareFunction_EnumRef = -1; public void PushUnityEngineRenderingCompareFunction(RealStatePtr L, UnityEngine.Rendering.CompareFunction val) { if (UnityEngineRenderingCompareFunction_TypeID == -1) { bool is_first; UnityEngineRenderingCompareFunction_TypeID = getTypeId(L, typeof(UnityEngine.Rendering.CompareFunction), out is_first); if (UnityEngineRenderingCompareFunction_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.Rendering.CompareFunction)); UnityEngineRenderingCompareFunction_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRenderingCompareFunction_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRenderingCompareFunction_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.Rendering.CompareFunction ,value="+val); } LuaAPI.lua_getref(L, UnityEngineRenderingCompareFunction_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.Rendering.CompareFunction val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderingCompareFunction_TypeID) { throw new Exception("invalid userdata for UnityEngine.Rendering.CompareFunction"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.Rendering.CompareFunction"); } val = (UnityEngine.Rendering.CompareFunction)e; } else { val = (UnityEngine.Rendering.CompareFunction)objectCasters.GetCaster(typeof(UnityEngine.Rendering.CompareFunction))(L, index, null); } } public void UpdateUnityEngineRenderingCompareFunction(RealStatePtr L, int index, UnityEngine.Rendering.CompareFunction val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderingCompareFunction_TypeID) { throw new Exception("invalid userdata for UnityEngine.Rendering.CompareFunction"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.Rendering.CompareFunction ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineTextAnchor_TypeID = -1; int UnityEngineTextAnchor_EnumRef = -1; public void PushUnityEngineTextAnchor(RealStatePtr L, UnityEngine.TextAnchor val) { if (UnityEngineTextAnchor_TypeID == -1) { bool is_first; UnityEngineTextAnchor_TypeID = getTypeId(L, typeof(UnityEngine.TextAnchor), out is_first); if (UnityEngineTextAnchor_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.TextAnchor)); UnityEngineTextAnchor_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineTextAnchor_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineTextAnchor_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.TextAnchor ,value="+val); } LuaAPI.lua_getref(L, UnityEngineTextAnchor_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.TextAnchor val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineTextAnchor_TypeID) { throw new Exception("invalid userdata for UnityEngine.TextAnchor"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.TextAnchor"); } val = (UnityEngine.TextAnchor)e; } else { val = (UnityEngine.TextAnchor)objectCasters.GetCaster(typeof(UnityEngine.TextAnchor))(L, index, null); } } public void UpdateUnityEngineTextAnchor(RealStatePtr L, int index, UnityEngine.TextAnchor val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineTextAnchor_TypeID) { throw new Exception("invalid userdata for UnityEngine.TextAnchor"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.TextAnchor ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineBatteryStatus_TypeID = -1; int UnityEngineBatteryStatus_EnumRef = -1; public void PushUnityEngineBatteryStatus(RealStatePtr L, UnityEngine.BatteryStatus val) { if (UnityEngineBatteryStatus_TypeID == -1) { bool is_first; UnityEngineBatteryStatus_TypeID = getTypeId(L, typeof(UnityEngine.BatteryStatus), out is_first); if (UnityEngineBatteryStatus_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.BatteryStatus)); UnityEngineBatteryStatus_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineBatteryStatus_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineBatteryStatus_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.BatteryStatus ,value="+val); } LuaAPI.lua_getref(L, UnityEngineBatteryStatus_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.BatteryStatus val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineBatteryStatus_TypeID) { throw new Exception("invalid userdata for UnityEngine.BatteryStatus"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.BatteryStatus"); } val = (UnityEngine.BatteryStatus)e; } else { val = (UnityEngine.BatteryStatus)objectCasters.GetCaster(typeof(UnityEngine.BatteryStatus))(L, index, null); } } public void UpdateUnityEngineBatteryStatus(RealStatePtr L, int index, UnityEngine.BatteryStatus val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineBatteryStatus_TypeID) { throw new Exception("invalid userdata for UnityEngine.BatteryStatus"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.BatteryStatus ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUIGraphicRaycasterBlockingObjects_TypeID = -1; int UnityEngineUIGraphicRaycasterBlockingObjects_EnumRef = -1; public void PushUnityEngineUIGraphicRaycasterBlockingObjects(RealStatePtr L, UnityEngine.UI.GraphicRaycaster.BlockingObjects val) { if (UnityEngineUIGraphicRaycasterBlockingObjects_TypeID == -1) { bool is_first; UnityEngineUIGraphicRaycasterBlockingObjects_TypeID = getTypeId(L, typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects), out is_first); if (UnityEngineUIGraphicRaycasterBlockingObjects_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects)); UnityEngineUIGraphicRaycasterBlockingObjects_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIGraphicRaycasterBlockingObjects_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIGraphicRaycasterBlockingObjects_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.GraphicRaycaster.BlockingObjects ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUIGraphicRaycasterBlockingObjects_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.GraphicRaycaster.BlockingObjects val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIGraphicRaycasterBlockingObjects_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.GraphicRaycaster.BlockingObjects"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.GraphicRaycaster.BlockingObjects"); } val = (UnityEngine.UI.GraphicRaycaster.BlockingObjects)e; } else { val = (UnityEngine.UI.GraphicRaycaster.BlockingObjects)objectCasters.GetCaster(typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects))(L, index, null); } } public void UpdateUnityEngineUIGraphicRaycasterBlockingObjects(RealStatePtr L, int index, UnityEngine.UI.GraphicRaycaster.BlockingObjects val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIGraphicRaycasterBlockingObjects_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.GraphicRaycaster.BlockingObjects"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.GraphicRaycaster.BlockingObjects ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUIImageType_TypeID = -1; int UnityEngineUIImageType_EnumRef = -1; public void PushUnityEngineUIImageType(RealStatePtr L, UnityEngine.UI.Image.Type val) { if (UnityEngineUIImageType_TypeID == -1) { bool is_first; UnityEngineUIImageType_TypeID = getTypeId(L, typeof(UnityEngine.UI.Image.Type), out is_first); if (UnityEngineUIImageType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.Image.Type)); UnityEngineUIImageType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIImageType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIImageType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.Image.Type ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUIImageType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.Image.Type val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageType_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.Image.Type"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.Image.Type"); } val = (UnityEngine.UI.Image.Type)e; } else { val = (UnityEngine.UI.Image.Type)objectCasters.GetCaster(typeof(UnityEngine.UI.Image.Type))(L, index, null); } } public void UpdateUnityEngineUIImageType(RealStatePtr L, int index, UnityEngine.UI.Image.Type val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageType_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.Image.Type"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.Image.Type ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUIImageFillMethod_TypeID = -1; int UnityEngineUIImageFillMethod_EnumRef = -1; public void PushUnityEngineUIImageFillMethod(RealStatePtr L, UnityEngine.UI.Image.FillMethod val) { if (UnityEngineUIImageFillMethod_TypeID == -1) { bool is_first; UnityEngineUIImageFillMethod_TypeID = getTypeId(L, typeof(UnityEngine.UI.Image.FillMethod), out is_first); if (UnityEngineUIImageFillMethod_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.Image.FillMethod)); UnityEngineUIImageFillMethod_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIImageFillMethod_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIImageFillMethod_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.Image.FillMethod ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUIImageFillMethod_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.Image.FillMethod val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageFillMethod_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.Image.FillMethod"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.Image.FillMethod"); } val = (UnityEngine.UI.Image.FillMethod)e; } else { val = (UnityEngine.UI.Image.FillMethod)objectCasters.GetCaster(typeof(UnityEngine.UI.Image.FillMethod))(L, index, null); } } public void UpdateUnityEngineUIImageFillMethod(RealStatePtr L, int index, UnityEngine.UI.Image.FillMethod val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageFillMethod_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.Image.FillMethod"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.Image.FillMethod ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUIImageOriginHorizontal_TypeID = -1; int UnityEngineUIImageOriginHorizontal_EnumRef = -1; public void PushUnityEngineUIImageOriginHorizontal(RealStatePtr L, UnityEngine.UI.Image.OriginHorizontal val) { if (UnityEngineUIImageOriginHorizontal_TypeID == -1) { bool is_first; UnityEngineUIImageOriginHorizontal_TypeID = getTypeId(L, typeof(UnityEngine.UI.Image.OriginHorizontal), out is_first); if (UnityEngineUIImageOriginHorizontal_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.Image.OriginHorizontal)); UnityEngineUIImageOriginHorizontal_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIImageOriginHorizontal_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIImageOriginHorizontal_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.Image.OriginHorizontal ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUIImageOriginHorizontal_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.Image.OriginHorizontal val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOriginHorizontal_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.Image.OriginHorizontal"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.Image.OriginHorizontal"); } val = (UnityEngine.UI.Image.OriginHorizontal)e; } else { val = (UnityEngine.UI.Image.OriginHorizontal)objectCasters.GetCaster(typeof(UnityEngine.UI.Image.OriginHorizontal))(L, index, null); } } public void UpdateUnityEngineUIImageOriginHorizontal(RealStatePtr L, int index, UnityEngine.UI.Image.OriginHorizontal val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOriginHorizontal_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.Image.OriginHorizontal"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.Image.OriginHorizontal ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUIImageOriginVertical_TypeID = -1; int UnityEngineUIImageOriginVertical_EnumRef = -1; public void PushUnityEngineUIImageOriginVertical(RealStatePtr L, UnityEngine.UI.Image.OriginVertical val) { if (UnityEngineUIImageOriginVertical_TypeID == -1) { bool is_first; UnityEngineUIImageOriginVertical_TypeID = getTypeId(L, typeof(UnityEngine.UI.Image.OriginVertical), out is_first); if (UnityEngineUIImageOriginVertical_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.Image.OriginVertical)); UnityEngineUIImageOriginVertical_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIImageOriginVertical_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIImageOriginVertical_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.Image.OriginVertical ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUIImageOriginVertical_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.Image.OriginVertical val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOriginVertical_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.Image.OriginVertical"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.Image.OriginVertical"); } val = (UnityEngine.UI.Image.OriginVertical)e; } else { val = (UnityEngine.UI.Image.OriginVertical)objectCasters.GetCaster(typeof(UnityEngine.UI.Image.OriginVertical))(L, index, null); } } public void UpdateUnityEngineUIImageOriginVertical(RealStatePtr L, int index, UnityEngine.UI.Image.OriginVertical val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOriginVertical_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.Image.OriginVertical"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.Image.OriginVertical ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUIImageOrigin90_TypeID = -1; int UnityEngineUIImageOrigin90_EnumRef = -1; public void PushUnityEngineUIImageOrigin90(RealStatePtr L, UnityEngine.UI.Image.Origin90 val) { if (UnityEngineUIImageOrigin90_TypeID == -1) { bool is_first; UnityEngineUIImageOrigin90_TypeID = getTypeId(L, typeof(UnityEngine.UI.Image.Origin90), out is_first); if (UnityEngineUIImageOrigin90_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.Image.Origin90)); UnityEngineUIImageOrigin90_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIImageOrigin90_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIImageOrigin90_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.Image.Origin90 ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUIImageOrigin90_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.Image.Origin90 val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOrigin90_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.Image.Origin90"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.Image.Origin90"); } val = (UnityEngine.UI.Image.Origin90)e; } else { val = (UnityEngine.UI.Image.Origin90)objectCasters.GetCaster(typeof(UnityEngine.UI.Image.Origin90))(L, index, null); } } public void UpdateUnityEngineUIImageOrigin90(RealStatePtr L, int index, UnityEngine.UI.Image.Origin90 val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOrigin90_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.Image.Origin90"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.Image.Origin90 ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUIImageOrigin180_TypeID = -1; int UnityEngineUIImageOrigin180_EnumRef = -1; public void PushUnityEngineUIImageOrigin180(RealStatePtr L, UnityEngine.UI.Image.Origin180 val) { if (UnityEngineUIImageOrigin180_TypeID == -1) { bool is_first; UnityEngineUIImageOrigin180_TypeID = getTypeId(L, typeof(UnityEngine.UI.Image.Origin180), out is_first); if (UnityEngineUIImageOrigin180_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.Image.Origin180)); UnityEngineUIImageOrigin180_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIImageOrigin180_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIImageOrigin180_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.Image.Origin180 ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUIImageOrigin180_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.Image.Origin180 val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOrigin180_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.Image.Origin180"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.Image.Origin180"); } val = (UnityEngine.UI.Image.Origin180)e; } else { val = (UnityEngine.UI.Image.Origin180)objectCasters.GetCaster(typeof(UnityEngine.UI.Image.Origin180))(L, index, null); } } public void UpdateUnityEngineUIImageOrigin180(RealStatePtr L, int index, UnityEngine.UI.Image.Origin180 val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOrigin180_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.Image.Origin180"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.Image.Origin180 ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUIImageOrigin360_TypeID = -1; int UnityEngineUIImageOrigin360_EnumRef = -1; public void PushUnityEngineUIImageOrigin360(RealStatePtr L, UnityEngine.UI.Image.Origin360 val) { if (UnityEngineUIImageOrigin360_TypeID == -1) { bool is_first; UnityEngineUIImageOrigin360_TypeID = getTypeId(L, typeof(UnityEngine.UI.Image.Origin360), out is_first); if (UnityEngineUIImageOrigin360_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.Image.Origin360)); UnityEngineUIImageOrigin360_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIImageOrigin360_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIImageOrigin360_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.Image.Origin360 ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUIImageOrigin360_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.Image.Origin360 val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOrigin360_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.Image.Origin360"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.Image.Origin360"); } val = (UnityEngine.UI.Image.Origin360)e; } else { val = (UnityEngine.UI.Image.Origin360)objectCasters.GetCaster(typeof(UnityEngine.UI.Image.Origin360))(L, index, null); } } public void UpdateUnityEngineUIImageOrigin360(RealStatePtr L, int index, UnityEngine.UI.Image.Origin360 val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOrigin360_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.Image.Origin360"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.Image.Origin360 ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUIInputFieldContentType_TypeID = -1; int UnityEngineUIInputFieldContentType_EnumRef = -1; public void PushUnityEngineUIInputFieldContentType(RealStatePtr L, UnityEngine.UI.InputField.ContentType val) { if (UnityEngineUIInputFieldContentType_TypeID == -1) { bool is_first; UnityEngineUIInputFieldContentType_TypeID = getTypeId(L, typeof(UnityEngine.UI.InputField.ContentType), out is_first); if (UnityEngineUIInputFieldContentType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.InputField.ContentType)); UnityEngineUIInputFieldContentType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIInputFieldContentType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIInputFieldContentType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.InputField.ContentType ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUIInputFieldContentType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.InputField.ContentType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIInputFieldContentType_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.InputField.ContentType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.InputField.ContentType"); } val = (UnityEngine.UI.InputField.ContentType)e; } else { val = (UnityEngine.UI.InputField.ContentType)objectCasters.GetCaster(typeof(UnityEngine.UI.InputField.ContentType))(L, index, null); } } public void UpdateUnityEngineUIInputFieldContentType(RealStatePtr L, int index, UnityEngine.UI.InputField.ContentType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIInputFieldContentType_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.InputField.ContentType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.InputField.ContentType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUIInputFieldInputType_TypeID = -1; int UnityEngineUIInputFieldInputType_EnumRef = -1; public void PushUnityEngineUIInputFieldInputType(RealStatePtr L, UnityEngine.UI.InputField.InputType val) { if (UnityEngineUIInputFieldInputType_TypeID == -1) { bool is_first; UnityEngineUIInputFieldInputType_TypeID = getTypeId(L, typeof(UnityEngine.UI.InputField.InputType), out is_first); if (UnityEngineUIInputFieldInputType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.InputField.InputType)); UnityEngineUIInputFieldInputType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIInputFieldInputType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIInputFieldInputType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.InputField.InputType ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUIInputFieldInputType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.InputField.InputType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIInputFieldInputType_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.InputField.InputType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.InputField.InputType"); } val = (UnityEngine.UI.InputField.InputType)e; } else { val = (UnityEngine.UI.InputField.InputType)objectCasters.GetCaster(typeof(UnityEngine.UI.InputField.InputType))(L, index, null); } } public void UpdateUnityEngineUIInputFieldInputType(RealStatePtr L, int index, UnityEngine.UI.InputField.InputType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIInputFieldInputType_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.InputField.InputType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.InputField.InputType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUIInputFieldCharacterValidation_TypeID = -1; int UnityEngineUIInputFieldCharacterValidation_EnumRef = -1; public void PushUnityEngineUIInputFieldCharacterValidation(RealStatePtr L, UnityEngine.UI.InputField.CharacterValidation val) { if (UnityEngineUIInputFieldCharacterValidation_TypeID == -1) { bool is_first; UnityEngineUIInputFieldCharacterValidation_TypeID = getTypeId(L, typeof(UnityEngine.UI.InputField.CharacterValidation), out is_first); if (UnityEngineUIInputFieldCharacterValidation_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.InputField.CharacterValidation)); UnityEngineUIInputFieldCharacterValidation_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIInputFieldCharacterValidation_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIInputFieldCharacterValidation_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.InputField.CharacterValidation ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUIInputFieldCharacterValidation_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.InputField.CharacterValidation val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIInputFieldCharacterValidation_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.InputField.CharacterValidation"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.InputField.CharacterValidation"); } val = (UnityEngine.UI.InputField.CharacterValidation)e; } else { val = (UnityEngine.UI.InputField.CharacterValidation)objectCasters.GetCaster(typeof(UnityEngine.UI.InputField.CharacterValidation))(L, index, null); } } public void UpdateUnityEngineUIInputFieldCharacterValidation(RealStatePtr L, int index, UnityEngine.UI.InputField.CharacterValidation val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIInputFieldCharacterValidation_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.InputField.CharacterValidation"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.InputField.CharacterValidation ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUIInputFieldLineType_TypeID = -1; int UnityEngineUIInputFieldLineType_EnumRef = -1; public void PushUnityEngineUIInputFieldLineType(RealStatePtr L, UnityEngine.UI.InputField.LineType val) { if (UnityEngineUIInputFieldLineType_TypeID == -1) { bool is_first; UnityEngineUIInputFieldLineType_TypeID = getTypeId(L, typeof(UnityEngine.UI.InputField.LineType), out is_first); if (UnityEngineUIInputFieldLineType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.InputField.LineType)); UnityEngineUIInputFieldLineType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIInputFieldLineType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIInputFieldLineType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.InputField.LineType ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUIInputFieldLineType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.InputField.LineType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIInputFieldLineType_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.InputField.LineType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.InputField.LineType"); } val = (UnityEngine.UI.InputField.LineType)e; } else { val = (UnityEngine.UI.InputField.LineType)objectCasters.GetCaster(typeof(UnityEngine.UI.InputField.LineType))(L, index, null); } } public void UpdateUnityEngineUIInputFieldLineType(RealStatePtr L, int index, UnityEngine.UI.InputField.LineType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIInputFieldLineType_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.InputField.LineType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.InputField.LineType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUIScrollRectMovementType_TypeID = -1; int UnityEngineUIScrollRectMovementType_EnumRef = -1; public void PushUnityEngineUIScrollRectMovementType(RealStatePtr L, UnityEngine.UI.ScrollRect.MovementType val) { if (UnityEngineUIScrollRectMovementType_TypeID == -1) { bool is_first; UnityEngineUIScrollRectMovementType_TypeID = getTypeId(L, typeof(UnityEngine.UI.ScrollRect.MovementType), out is_first); if (UnityEngineUIScrollRectMovementType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.ScrollRect.MovementType)); UnityEngineUIScrollRectMovementType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIScrollRectMovementType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIScrollRectMovementType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.ScrollRect.MovementType ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUIScrollRectMovementType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.ScrollRect.MovementType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIScrollRectMovementType_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.ScrollRect.MovementType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.ScrollRect.MovementType"); } val = (UnityEngine.UI.ScrollRect.MovementType)e; } else { val = (UnityEngine.UI.ScrollRect.MovementType)objectCasters.GetCaster(typeof(UnityEngine.UI.ScrollRect.MovementType))(L, index, null); } } public void UpdateUnityEngineUIScrollRectMovementType(RealStatePtr L, int index, UnityEngine.UI.ScrollRect.MovementType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIScrollRectMovementType_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.ScrollRect.MovementType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.ScrollRect.MovementType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUIScrollRectScrollbarVisibility_TypeID = -1; int UnityEngineUIScrollRectScrollbarVisibility_EnumRef = -1; public void PushUnityEngineUIScrollRectScrollbarVisibility(RealStatePtr L, UnityEngine.UI.ScrollRect.ScrollbarVisibility val) { if (UnityEngineUIScrollRectScrollbarVisibility_TypeID == -1) { bool is_first; UnityEngineUIScrollRectScrollbarVisibility_TypeID = getTypeId(L, typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility), out is_first); if (UnityEngineUIScrollRectScrollbarVisibility_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility)); UnityEngineUIScrollRectScrollbarVisibility_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIScrollRectScrollbarVisibility_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIScrollRectScrollbarVisibility_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.ScrollRect.ScrollbarVisibility ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUIScrollRectScrollbarVisibility_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.ScrollRect.ScrollbarVisibility val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIScrollRectScrollbarVisibility_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.ScrollRect.ScrollbarVisibility"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.ScrollRect.ScrollbarVisibility"); } val = (UnityEngine.UI.ScrollRect.ScrollbarVisibility)e; } else { val = (UnityEngine.UI.ScrollRect.ScrollbarVisibility)objectCasters.GetCaster(typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility))(L, index, null); } } public void UpdateUnityEngineUIScrollRectScrollbarVisibility(RealStatePtr L, int index, UnityEngine.UI.ScrollRect.ScrollbarVisibility val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIScrollRectScrollbarVisibility_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.ScrollRect.ScrollbarVisibility"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.ScrollRect.ScrollbarVisibility ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUISliderDirection_TypeID = -1; int UnityEngineUISliderDirection_EnumRef = -1; public void PushUnityEngineUISliderDirection(RealStatePtr L, UnityEngine.UI.Slider.Direction val) { if (UnityEngineUISliderDirection_TypeID == -1) { bool is_first; UnityEngineUISliderDirection_TypeID = getTypeId(L, typeof(UnityEngine.UI.Slider.Direction), out is_first); if (UnityEngineUISliderDirection_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.Slider.Direction)); UnityEngineUISliderDirection_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUISliderDirection_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUISliderDirection_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.Slider.Direction ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUISliderDirection_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.Slider.Direction val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUISliderDirection_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.Slider.Direction"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.Slider.Direction"); } val = (UnityEngine.UI.Slider.Direction)e; } else { val = (UnityEngine.UI.Slider.Direction)objectCasters.GetCaster(typeof(UnityEngine.UI.Slider.Direction))(L, index, null); } } public void UpdateUnityEngineUISliderDirection(RealStatePtr L, int index, UnityEngine.UI.Slider.Direction val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUISliderDirection_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.Slider.Direction"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.Slider.Direction ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUIToggleToggleTransition_TypeID = -1; int UnityEngineUIToggleToggleTransition_EnumRef = -1; public void PushUnityEngineUIToggleToggleTransition(RealStatePtr L, UnityEngine.UI.Toggle.ToggleTransition val) { if (UnityEngineUIToggleToggleTransition_TypeID == -1) { bool is_first; UnityEngineUIToggleToggleTransition_TypeID = getTypeId(L, typeof(UnityEngine.UI.Toggle.ToggleTransition), out is_first); if (UnityEngineUIToggleToggleTransition_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.Toggle.ToggleTransition)); UnityEngineUIToggleToggleTransition_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIToggleToggleTransition_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIToggleToggleTransition_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.Toggle.ToggleTransition ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUIToggleToggleTransition_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.Toggle.ToggleTransition val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIToggleToggleTransition_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.Toggle.ToggleTransition"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.Toggle.ToggleTransition"); } val = (UnityEngine.UI.Toggle.ToggleTransition)e; } else { val = (UnityEngine.UI.Toggle.ToggleTransition)objectCasters.GetCaster(typeof(UnityEngine.UI.Toggle.ToggleTransition))(L, index, null); } } public void UpdateUnityEngineUIToggleToggleTransition(RealStatePtr L, int index, UnityEngine.UI.Toggle.ToggleTransition val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIToggleToggleTransition_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.Toggle.ToggleTransition"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.Toggle.ToggleTransition ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUIGridLayoutGroupCorner_TypeID = -1; int UnityEngineUIGridLayoutGroupCorner_EnumRef = -1; public void PushUnityEngineUIGridLayoutGroupCorner(RealStatePtr L, UnityEngine.UI.GridLayoutGroup.Corner val) { if (UnityEngineUIGridLayoutGroupCorner_TypeID == -1) { bool is_first; UnityEngineUIGridLayoutGroupCorner_TypeID = getTypeId(L, typeof(UnityEngine.UI.GridLayoutGroup.Corner), out is_first); if (UnityEngineUIGridLayoutGroupCorner_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.GridLayoutGroup.Corner)); UnityEngineUIGridLayoutGroupCorner_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIGridLayoutGroupCorner_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIGridLayoutGroupCorner_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.GridLayoutGroup.Corner ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUIGridLayoutGroupCorner_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.GridLayoutGroup.Corner val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIGridLayoutGroupCorner_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.GridLayoutGroup.Corner"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.GridLayoutGroup.Corner"); } val = (UnityEngine.UI.GridLayoutGroup.Corner)e; } else { val = (UnityEngine.UI.GridLayoutGroup.Corner)objectCasters.GetCaster(typeof(UnityEngine.UI.GridLayoutGroup.Corner))(L, index, null); } } public void UpdateUnityEngineUIGridLayoutGroupCorner(RealStatePtr L, int index, UnityEngine.UI.GridLayoutGroup.Corner val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIGridLayoutGroupCorner_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.GridLayoutGroup.Corner"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.GridLayoutGroup.Corner ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUIGridLayoutGroupAxis_TypeID = -1; int UnityEngineUIGridLayoutGroupAxis_EnumRef = -1; public void PushUnityEngineUIGridLayoutGroupAxis(RealStatePtr L, UnityEngine.UI.GridLayoutGroup.Axis val) { if (UnityEngineUIGridLayoutGroupAxis_TypeID == -1) { bool is_first; UnityEngineUIGridLayoutGroupAxis_TypeID = getTypeId(L, typeof(UnityEngine.UI.GridLayoutGroup.Axis), out is_first); if (UnityEngineUIGridLayoutGroupAxis_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.GridLayoutGroup.Axis)); UnityEngineUIGridLayoutGroupAxis_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIGridLayoutGroupAxis_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIGridLayoutGroupAxis_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.GridLayoutGroup.Axis ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUIGridLayoutGroupAxis_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.GridLayoutGroup.Axis val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIGridLayoutGroupAxis_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.GridLayoutGroup.Axis"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.GridLayoutGroup.Axis"); } val = (UnityEngine.UI.GridLayoutGroup.Axis)e; } else { val = (UnityEngine.UI.GridLayoutGroup.Axis)objectCasters.GetCaster(typeof(UnityEngine.UI.GridLayoutGroup.Axis))(L, index, null); } } public void UpdateUnityEngineUIGridLayoutGroupAxis(RealStatePtr L, int index, UnityEngine.UI.GridLayoutGroup.Axis val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIGridLayoutGroupAxis_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.GridLayoutGroup.Axis"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.GridLayoutGroup.Axis ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineUIGridLayoutGroupConstraint_TypeID = -1; int UnityEngineUIGridLayoutGroupConstraint_EnumRef = -1; public void PushUnityEngineUIGridLayoutGroupConstraint(RealStatePtr L, UnityEngine.UI.GridLayoutGroup.Constraint val) { if (UnityEngineUIGridLayoutGroupConstraint_TypeID == -1) { bool is_first; UnityEngineUIGridLayoutGroupConstraint_TypeID = getTypeId(L, typeof(UnityEngine.UI.GridLayoutGroup.Constraint), out is_first); if (UnityEngineUIGridLayoutGroupConstraint_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.GridLayoutGroup.Constraint)); UnityEngineUIGridLayoutGroupConstraint_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIGridLayoutGroupConstraint_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIGridLayoutGroupConstraint_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.GridLayoutGroup.Constraint ,value="+val); } LuaAPI.lua_getref(L, UnityEngineUIGridLayoutGroupConstraint_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.UI.GridLayoutGroup.Constraint val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIGridLayoutGroupConstraint_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.GridLayoutGroup.Constraint"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.GridLayoutGroup.Constraint"); } val = (UnityEngine.UI.GridLayoutGroup.Constraint)e; } else { val = (UnityEngine.UI.GridLayoutGroup.Constraint)objectCasters.GetCaster(typeof(UnityEngine.UI.GridLayoutGroup.Constraint))(L, index, null); } } public void UpdateUnityEngineUIGridLayoutGroupConstraint(RealStatePtr L, int index, UnityEngine.UI.GridLayoutGroup.Constraint val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIGridLayoutGroupConstraint_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.GridLayoutGroup.Constraint"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.GridLayoutGroup.Constraint ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int SpineUnityBoneFollowerAxisOrientation_TypeID = -1; int SpineUnityBoneFollowerAxisOrientation_EnumRef = -1; public void PushSpineUnityBoneFollowerAxisOrientation(RealStatePtr L, Spine.Unity.BoneFollower.AxisOrientation val) { if (SpineUnityBoneFollowerAxisOrientation_TypeID == -1) { bool is_first; SpineUnityBoneFollowerAxisOrientation_TypeID = getTypeId(L, typeof(Spine.Unity.BoneFollower.AxisOrientation), out is_first); if (SpineUnityBoneFollowerAxisOrientation_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Spine.Unity.BoneFollower.AxisOrientation)); SpineUnityBoneFollowerAxisOrientation_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, SpineUnityBoneFollowerAxisOrientation_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, SpineUnityBoneFollowerAxisOrientation_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Spine.Unity.BoneFollower.AxisOrientation ,value="+val); } LuaAPI.lua_getref(L, SpineUnityBoneFollowerAxisOrientation_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out Spine.Unity.BoneFollower.AxisOrientation val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != SpineUnityBoneFollowerAxisOrientation_TypeID) { throw new Exception("invalid userdata for Spine.Unity.BoneFollower.AxisOrientation"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Spine.Unity.BoneFollower.AxisOrientation"); } val = (Spine.Unity.BoneFollower.AxisOrientation)e; } else { val = (Spine.Unity.BoneFollower.AxisOrientation)objectCasters.GetCaster(typeof(Spine.Unity.BoneFollower.AxisOrientation))(L, index, null); } } public void UpdateSpineUnityBoneFollowerAxisOrientation(RealStatePtr L, int index, Spine.Unity.BoneFollower.AxisOrientation val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != SpineUnityBoneFollowerAxisOrientation_TypeID) { throw new Exception("invalid userdata for Spine.Unity.BoneFollower.AxisOrientation"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Spine.Unity.BoneFollower.AxisOrientation ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int TMProTextAlignmentOptions_TypeID = -1; int TMProTextAlignmentOptions_EnumRef = -1; public void PushTMProTextAlignmentOptions(RealStatePtr L, TMPro.TextAlignmentOptions val) { if (TMProTextAlignmentOptions_TypeID == -1) { bool is_first; TMProTextAlignmentOptions_TypeID = getTypeId(L, typeof(TMPro.TextAlignmentOptions), out is_first); if (TMProTextAlignmentOptions_EnumRef == -1) { Utils.LoadCSTable(L, typeof(TMPro.TextAlignmentOptions)); TMProTextAlignmentOptions_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, TMProTextAlignmentOptions_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, TMProTextAlignmentOptions_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for TMPro.TextAlignmentOptions ,value="+val); } LuaAPI.lua_getref(L, TMProTextAlignmentOptions_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out TMPro.TextAlignmentOptions val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != TMProTextAlignmentOptions_TypeID) { throw new Exception("invalid userdata for TMPro.TextAlignmentOptions"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for TMPro.TextAlignmentOptions"); } val = (TMPro.TextAlignmentOptions)e; } else { val = (TMPro.TextAlignmentOptions)objectCasters.GetCaster(typeof(TMPro.TextAlignmentOptions))(L, index, null); } } public void UpdateTMProTextAlignmentOptions(RealStatePtr L, int index, TMPro.TextAlignmentOptions val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != TMProTextAlignmentOptions_TypeID) { throw new Exception("invalid userdata for TMPro.TextAlignmentOptions"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for TMPro.TextAlignmentOptions ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int TMProTMP_InputFieldContentType_TypeID = -1; int TMProTMP_InputFieldContentType_EnumRef = -1; public void PushTMProTMP_InputFieldContentType(RealStatePtr L, TMPro.TMP_InputField.ContentType val) { if (TMProTMP_InputFieldContentType_TypeID == -1) { bool is_first; TMProTMP_InputFieldContentType_TypeID = getTypeId(L, typeof(TMPro.TMP_InputField.ContentType), out is_first); if (TMProTMP_InputFieldContentType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(TMPro.TMP_InputField.ContentType)); TMProTMP_InputFieldContentType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, TMProTMP_InputFieldContentType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, TMProTMP_InputFieldContentType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for TMPro.TMP_InputField.ContentType ,value="+val); } LuaAPI.lua_getref(L, TMProTMP_InputFieldContentType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out TMPro.TMP_InputField.ContentType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != TMProTMP_InputFieldContentType_TypeID) { throw new Exception("invalid userdata for TMPro.TMP_InputField.ContentType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for TMPro.TMP_InputField.ContentType"); } val = (TMPro.TMP_InputField.ContentType)e; } else { val = (TMPro.TMP_InputField.ContentType)objectCasters.GetCaster(typeof(TMPro.TMP_InputField.ContentType))(L, index, null); } } public void UpdateTMProTMP_InputFieldContentType(RealStatePtr L, int index, TMPro.TMP_InputField.ContentType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != TMProTMP_InputFieldContentType_TypeID) { throw new Exception("invalid userdata for TMPro.TMP_InputField.ContentType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for TMPro.TMP_InputField.ContentType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int TMProTMP_InputFieldInputType_TypeID = -1; int TMProTMP_InputFieldInputType_EnumRef = -1; public void PushTMProTMP_InputFieldInputType(RealStatePtr L, TMPro.TMP_InputField.InputType val) { if (TMProTMP_InputFieldInputType_TypeID == -1) { bool is_first; TMProTMP_InputFieldInputType_TypeID = getTypeId(L, typeof(TMPro.TMP_InputField.InputType), out is_first); if (TMProTMP_InputFieldInputType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(TMPro.TMP_InputField.InputType)); TMProTMP_InputFieldInputType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, TMProTMP_InputFieldInputType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, TMProTMP_InputFieldInputType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for TMPro.TMP_InputField.InputType ,value="+val); } LuaAPI.lua_getref(L, TMProTMP_InputFieldInputType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out TMPro.TMP_InputField.InputType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != TMProTMP_InputFieldInputType_TypeID) { throw new Exception("invalid userdata for TMPro.TMP_InputField.InputType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for TMPro.TMP_InputField.InputType"); } val = (TMPro.TMP_InputField.InputType)e; } else { val = (TMPro.TMP_InputField.InputType)objectCasters.GetCaster(typeof(TMPro.TMP_InputField.InputType))(L, index, null); } } public void UpdateTMProTMP_InputFieldInputType(RealStatePtr L, int index, TMPro.TMP_InputField.InputType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != TMProTMP_InputFieldInputType_TypeID) { throw new Exception("invalid userdata for TMPro.TMP_InputField.InputType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for TMPro.TMP_InputField.InputType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int TMProTMP_InputFieldCharacterValidation_TypeID = -1; int TMProTMP_InputFieldCharacterValidation_EnumRef = -1; public void PushTMProTMP_InputFieldCharacterValidation(RealStatePtr L, TMPro.TMP_InputField.CharacterValidation val) { if (TMProTMP_InputFieldCharacterValidation_TypeID == -1) { bool is_first; TMProTMP_InputFieldCharacterValidation_TypeID = getTypeId(L, typeof(TMPro.TMP_InputField.CharacterValidation), out is_first); if (TMProTMP_InputFieldCharacterValidation_EnumRef == -1) { Utils.LoadCSTable(L, typeof(TMPro.TMP_InputField.CharacterValidation)); TMProTMP_InputFieldCharacterValidation_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, TMProTMP_InputFieldCharacterValidation_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, TMProTMP_InputFieldCharacterValidation_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for TMPro.TMP_InputField.CharacterValidation ,value="+val); } LuaAPI.lua_getref(L, TMProTMP_InputFieldCharacterValidation_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out TMPro.TMP_InputField.CharacterValidation val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != TMProTMP_InputFieldCharacterValidation_TypeID) { throw new Exception("invalid userdata for TMPro.TMP_InputField.CharacterValidation"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for TMPro.TMP_InputField.CharacterValidation"); } val = (TMPro.TMP_InputField.CharacterValidation)e; } else { val = (TMPro.TMP_InputField.CharacterValidation)objectCasters.GetCaster(typeof(TMPro.TMP_InputField.CharacterValidation))(L, index, null); } } public void UpdateTMProTMP_InputFieldCharacterValidation(RealStatePtr L, int index, TMPro.TMP_InputField.CharacterValidation val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != TMProTMP_InputFieldCharacterValidation_TypeID) { throw new Exception("invalid userdata for TMPro.TMP_InputField.CharacterValidation"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for TMPro.TMP_InputField.CharacterValidation ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int TMProTMP_InputFieldLineType_TypeID = -1; int TMProTMP_InputFieldLineType_EnumRef = -1; public void PushTMProTMP_InputFieldLineType(RealStatePtr L, TMPro.TMP_InputField.LineType val) { if (TMProTMP_InputFieldLineType_TypeID == -1) { bool is_first; TMProTMP_InputFieldLineType_TypeID = getTypeId(L, typeof(TMPro.TMP_InputField.LineType), out is_first); if (TMProTMP_InputFieldLineType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(TMPro.TMP_InputField.LineType)); TMProTMP_InputFieldLineType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, TMProTMP_InputFieldLineType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, TMProTMP_InputFieldLineType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for TMPro.TMP_InputField.LineType ,value="+val); } LuaAPI.lua_getref(L, TMProTMP_InputFieldLineType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out TMPro.TMP_InputField.LineType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != TMProTMP_InputFieldLineType_TypeID) { throw new Exception("invalid userdata for TMPro.TMP_InputField.LineType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for TMPro.TMP_InputField.LineType"); } val = (TMPro.TMP_InputField.LineType)e; } else { val = (TMPro.TMP_InputField.LineType)objectCasters.GetCaster(typeof(TMPro.TMP_InputField.LineType))(L, index, null); } } public void UpdateTMProTMP_InputFieldLineType(RealStatePtr L, int index, TMPro.TMP_InputField.LineType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != TMProTMP_InputFieldLineType_TypeID) { throw new Exception("invalid userdata for TMPro.TMP_InputField.LineType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for TMPro.TMP_InputField.LineType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int DGTweeningAutoPlay_TypeID = -1; int DGTweeningAutoPlay_EnumRef = -1; public void PushDGTweeningAutoPlay(RealStatePtr L, DG.Tweening.AutoPlay val) { if (DGTweeningAutoPlay_TypeID == -1) { bool is_first; DGTweeningAutoPlay_TypeID = getTypeId(L, typeof(DG.Tweening.AutoPlay), out is_first); if (DGTweeningAutoPlay_EnumRef == -1) { Utils.LoadCSTable(L, typeof(DG.Tweening.AutoPlay)); DGTweeningAutoPlay_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningAutoPlay_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningAutoPlay_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for DG.Tweening.AutoPlay ,value="+val); } LuaAPI.lua_getref(L, DGTweeningAutoPlay_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out DG.Tweening.AutoPlay val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningAutoPlay_TypeID) { throw new Exception("invalid userdata for DG.Tweening.AutoPlay"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for DG.Tweening.AutoPlay"); } val = (DG.Tweening.AutoPlay)e; } else { val = (DG.Tweening.AutoPlay)objectCasters.GetCaster(typeof(DG.Tweening.AutoPlay))(L, index, null); } } public void UpdateDGTweeningAutoPlay(RealStatePtr L, int index, DG.Tweening.AutoPlay val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningAutoPlay_TypeID) { throw new Exception("invalid userdata for DG.Tweening.AutoPlay"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for DG.Tweening.AutoPlay ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int DGTweeningAxisConstraint_TypeID = -1; int DGTweeningAxisConstraint_EnumRef = -1; public void PushDGTweeningAxisConstraint(RealStatePtr L, DG.Tweening.AxisConstraint val) { if (DGTweeningAxisConstraint_TypeID == -1) { bool is_first; DGTweeningAxisConstraint_TypeID = getTypeId(L, typeof(DG.Tweening.AxisConstraint), out is_first); if (DGTweeningAxisConstraint_EnumRef == -1) { Utils.LoadCSTable(L, typeof(DG.Tweening.AxisConstraint)); DGTweeningAxisConstraint_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningAxisConstraint_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningAxisConstraint_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for DG.Tweening.AxisConstraint ,value="+val); } LuaAPI.lua_getref(L, DGTweeningAxisConstraint_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out DG.Tweening.AxisConstraint val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningAxisConstraint_TypeID) { throw new Exception("invalid userdata for DG.Tweening.AxisConstraint"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for DG.Tweening.AxisConstraint"); } val = (DG.Tweening.AxisConstraint)e; } else { val = (DG.Tweening.AxisConstraint)objectCasters.GetCaster(typeof(DG.Tweening.AxisConstraint))(L, index, null); } } public void UpdateDGTweeningAxisConstraint(RealStatePtr L, int index, DG.Tweening.AxisConstraint val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningAxisConstraint_TypeID) { throw new Exception("invalid userdata for DG.Tweening.AxisConstraint"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for DG.Tweening.AxisConstraint ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int DGTweeningEase_TypeID = -1; int DGTweeningEase_EnumRef = -1; public void PushDGTweeningEase(RealStatePtr L, DG.Tweening.Ease val) { if (DGTweeningEase_TypeID == -1) { bool is_first; DGTweeningEase_TypeID = getTypeId(L, typeof(DG.Tweening.Ease), out is_first); if (DGTweeningEase_EnumRef == -1) { Utils.LoadCSTable(L, typeof(DG.Tweening.Ease)); DGTweeningEase_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningEase_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningEase_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for DG.Tweening.Ease ,value="+val); } LuaAPI.lua_getref(L, DGTweeningEase_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out DG.Tweening.Ease val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningEase_TypeID) { throw new Exception("invalid userdata for DG.Tweening.Ease"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for DG.Tweening.Ease"); } val = (DG.Tweening.Ease)e; } else { val = (DG.Tweening.Ease)objectCasters.GetCaster(typeof(DG.Tweening.Ease))(L, index, null); } } public void UpdateDGTweeningEase(RealStatePtr L, int index, DG.Tweening.Ease val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningEase_TypeID) { throw new Exception("invalid userdata for DG.Tweening.Ease"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for DG.Tweening.Ease ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int DGTweeningLogBehaviour_TypeID = -1; int DGTweeningLogBehaviour_EnumRef = -1; public void PushDGTweeningLogBehaviour(RealStatePtr L, DG.Tweening.LogBehaviour val) { if (DGTweeningLogBehaviour_TypeID == -1) { bool is_first; DGTweeningLogBehaviour_TypeID = getTypeId(L, typeof(DG.Tweening.LogBehaviour), out is_first); if (DGTweeningLogBehaviour_EnumRef == -1) { Utils.LoadCSTable(L, typeof(DG.Tweening.LogBehaviour)); DGTweeningLogBehaviour_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningLogBehaviour_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningLogBehaviour_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for DG.Tweening.LogBehaviour ,value="+val); } LuaAPI.lua_getref(L, DGTweeningLogBehaviour_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out DG.Tweening.LogBehaviour val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningLogBehaviour_TypeID) { throw new Exception("invalid userdata for DG.Tweening.LogBehaviour"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for DG.Tweening.LogBehaviour"); } val = (DG.Tweening.LogBehaviour)e; } else { val = (DG.Tweening.LogBehaviour)objectCasters.GetCaster(typeof(DG.Tweening.LogBehaviour))(L, index, null); } } public void UpdateDGTweeningLogBehaviour(RealStatePtr L, int index, DG.Tweening.LogBehaviour val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningLogBehaviour_TypeID) { throw new Exception("invalid userdata for DG.Tweening.LogBehaviour"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for DG.Tweening.LogBehaviour ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int DGTweeningLoopType_TypeID = -1; int DGTweeningLoopType_EnumRef = -1; public void PushDGTweeningLoopType(RealStatePtr L, DG.Tweening.LoopType val) { if (DGTweeningLoopType_TypeID == -1) { bool is_first; DGTweeningLoopType_TypeID = getTypeId(L, typeof(DG.Tweening.LoopType), out is_first); if (DGTweeningLoopType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(DG.Tweening.LoopType)); DGTweeningLoopType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningLoopType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningLoopType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for DG.Tweening.LoopType ,value="+val); } LuaAPI.lua_getref(L, DGTweeningLoopType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out DG.Tweening.LoopType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningLoopType_TypeID) { throw new Exception("invalid userdata for DG.Tweening.LoopType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for DG.Tweening.LoopType"); } val = (DG.Tweening.LoopType)e; } else { val = (DG.Tweening.LoopType)objectCasters.GetCaster(typeof(DG.Tweening.LoopType))(L, index, null); } } public void UpdateDGTweeningLoopType(RealStatePtr L, int index, DG.Tweening.LoopType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningLoopType_TypeID) { throw new Exception("invalid userdata for DG.Tweening.LoopType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for DG.Tweening.LoopType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int DGTweeningPathMode_TypeID = -1; int DGTweeningPathMode_EnumRef = -1; public void PushDGTweeningPathMode(RealStatePtr L, DG.Tweening.PathMode val) { if (DGTweeningPathMode_TypeID == -1) { bool is_first; DGTweeningPathMode_TypeID = getTypeId(L, typeof(DG.Tweening.PathMode), out is_first); if (DGTweeningPathMode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(DG.Tweening.PathMode)); DGTweeningPathMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningPathMode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningPathMode_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for DG.Tweening.PathMode ,value="+val); } LuaAPI.lua_getref(L, DGTweeningPathMode_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out DG.Tweening.PathMode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningPathMode_TypeID) { throw new Exception("invalid userdata for DG.Tweening.PathMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for DG.Tweening.PathMode"); } val = (DG.Tweening.PathMode)e; } else { val = (DG.Tweening.PathMode)objectCasters.GetCaster(typeof(DG.Tweening.PathMode))(L, index, null); } } public void UpdateDGTweeningPathMode(RealStatePtr L, int index, DG.Tweening.PathMode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningPathMode_TypeID) { throw new Exception("invalid userdata for DG.Tweening.PathMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for DG.Tweening.PathMode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int DGTweeningPathType_TypeID = -1; int DGTweeningPathType_EnumRef = -1; public void PushDGTweeningPathType(RealStatePtr L, DG.Tweening.PathType val) { if (DGTweeningPathType_TypeID == -1) { bool is_first; DGTweeningPathType_TypeID = getTypeId(L, typeof(DG.Tweening.PathType), out is_first); if (DGTweeningPathType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(DG.Tweening.PathType)); DGTweeningPathType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningPathType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningPathType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for DG.Tweening.PathType ,value="+val); } LuaAPI.lua_getref(L, DGTweeningPathType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out DG.Tweening.PathType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningPathType_TypeID) { throw new Exception("invalid userdata for DG.Tweening.PathType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for DG.Tweening.PathType"); } val = (DG.Tweening.PathType)e; } else { val = (DG.Tweening.PathType)objectCasters.GetCaster(typeof(DG.Tweening.PathType))(L, index, null); } } public void UpdateDGTweeningPathType(RealStatePtr L, int index, DG.Tweening.PathType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningPathType_TypeID) { throw new Exception("invalid userdata for DG.Tweening.PathType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for DG.Tweening.PathType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int DGTweeningRotateMode_TypeID = -1; int DGTweeningRotateMode_EnumRef = -1; public void PushDGTweeningRotateMode(RealStatePtr L, DG.Tweening.RotateMode val) { if (DGTweeningRotateMode_TypeID == -1) { bool is_first; DGTweeningRotateMode_TypeID = getTypeId(L, typeof(DG.Tweening.RotateMode), out is_first); if (DGTweeningRotateMode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(DG.Tweening.RotateMode)); DGTweeningRotateMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningRotateMode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningRotateMode_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for DG.Tweening.RotateMode ,value="+val); } LuaAPI.lua_getref(L, DGTweeningRotateMode_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out DG.Tweening.RotateMode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningRotateMode_TypeID) { throw new Exception("invalid userdata for DG.Tweening.RotateMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for DG.Tweening.RotateMode"); } val = (DG.Tweening.RotateMode)e; } else { val = (DG.Tweening.RotateMode)objectCasters.GetCaster(typeof(DG.Tweening.RotateMode))(L, index, null); } } public void UpdateDGTweeningRotateMode(RealStatePtr L, int index, DG.Tweening.RotateMode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningRotateMode_TypeID) { throw new Exception("invalid userdata for DG.Tweening.RotateMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for DG.Tweening.RotateMode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int DGTweeningScrambleMode_TypeID = -1; int DGTweeningScrambleMode_EnumRef = -1; public void PushDGTweeningScrambleMode(RealStatePtr L, DG.Tweening.ScrambleMode val) { if (DGTweeningScrambleMode_TypeID == -1) { bool is_first; DGTweeningScrambleMode_TypeID = getTypeId(L, typeof(DG.Tweening.ScrambleMode), out is_first); if (DGTweeningScrambleMode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(DG.Tweening.ScrambleMode)); DGTweeningScrambleMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningScrambleMode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningScrambleMode_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for DG.Tweening.ScrambleMode ,value="+val); } LuaAPI.lua_getref(L, DGTweeningScrambleMode_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out DG.Tweening.ScrambleMode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningScrambleMode_TypeID) { throw new Exception("invalid userdata for DG.Tweening.ScrambleMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for DG.Tweening.ScrambleMode"); } val = (DG.Tweening.ScrambleMode)e; } else { val = (DG.Tweening.ScrambleMode)objectCasters.GetCaster(typeof(DG.Tweening.ScrambleMode))(L, index, null); } } public void UpdateDGTweeningScrambleMode(RealStatePtr L, int index, DG.Tweening.ScrambleMode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningScrambleMode_TypeID) { throw new Exception("invalid userdata for DG.Tweening.ScrambleMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for DG.Tweening.ScrambleMode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int DGTweeningTweenType_TypeID = -1; int DGTweeningTweenType_EnumRef = -1; public void PushDGTweeningTweenType(RealStatePtr L, DG.Tweening.TweenType val) { if (DGTweeningTweenType_TypeID == -1) { bool is_first; DGTweeningTweenType_TypeID = getTypeId(L, typeof(DG.Tweening.TweenType), out is_first); if (DGTweeningTweenType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(DG.Tweening.TweenType)); DGTweeningTweenType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningTweenType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningTweenType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for DG.Tweening.TweenType ,value="+val); } LuaAPI.lua_getref(L, DGTweeningTweenType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out DG.Tweening.TweenType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningTweenType_TypeID) { throw new Exception("invalid userdata for DG.Tweening.TweenType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for DG.Tweening.TweenType"); } val = (DG.Tweening.TweenType)e; } else { val = (DG.Tweening.TweenType)objectCasters.GetCaster(typeof(DG.Tweening.TweenType))(L, index, null); } } public void UpdateDGTweeningTweenType(RealStatePtr L, int index, DG.Tweening.TweenType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningTweenType_TypeID) { throw new Exception("invalid userdata for DG.Tweening.TweenType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for DG.Tweening.TweenType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int DGTweeningUpdateType_TypeID = -1; int DGTweeningUpdateType_EnumRef = -1; public void PushDGTweeningUpdateType(RealStatePtr L, DG.Tweening.UpdateType val) { if (DGTweeningUpdateType_TypeID == -1) { bool is_first; DGTweeningUpdateType_TypeID = getTypeId(L, typeof(DG.Tweening.UpdateType), out is_first); if (DGTweeningUpdateType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(DG.Tweening.UpdateType)); DGTweeningUpdateType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningUpdateType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningUpdateType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for DG.Tweening.UpdateType ,value="+val); } LuaAPI.lua_getref(L, DGTweeningUpdateType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out DG.Tweening.UpdateType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningUpdateType_TypeID) { throw new Exception("invalid userdata for DG.Tweening.UpdateType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for DG.Tweening.UpdateType"); } val = (DG.Tweening.UpdateType)e; } else { val = (DG.Tweening.UpdateType)objectCasters.GetCaster(typeof(DG.Tweening.UpdateType))(L, index, null); } } public void UpdateDGTweeningUpdateType(RealStatePtr L, int index, DG.Tweening.UpdateType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningUpdateType_TypeID) { throw new Exception("invalid userdata for DG.Tweening.UpdateType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for DG.Tweening.UpdateType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_TypeID = -1; int ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_EnumRef = -1; public void PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(RealStatePtr L, ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone val) { if (ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_TypeID == -1) { bool is_first; ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_TypeID = getTypeId(L, typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone), out is_first); if (ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_EnumRef == -1) { Utils.LoadCSTable(L, typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone)); ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone ,value="+val); } LuaAPI.lua_getref(L, ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_TypeID) { throw new Exception("invalid userdata for ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone"); } val = (ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone)e; } else { val = (ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone)objectCasters.GetCaster(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone))(L, index, null); } } public void UpdateThinkingAnalyticsThinkingAnalyticsAPITATimeZone(RealStatePtr L, int index, ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_TypeID) { throw new Exception("invalid userdata for ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThinkingAnalyticsThinkingAnalyticsAPITAMode_TypeID = -1; int ThinkingAnalyticsThinkingAnalyticsAPITAMode_EnumRef = -1; public void PushThinkingAnalyticsThinkingAnalyticsAPITAMode(RealStatePtr L, ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode val) { if (ThinkingAnalyticsThinkingAnalyticsAPITAMode_TypeID == -1) { bool is_first; ThinkingAnalyticsThinkingAnalyticsAPITAMode_TypeID = getTypeId(L, typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode), out is_first); if (ThinkingAnalyticsThinkingAnalyticsAPITAMode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode)); ThinkingAnalyticsThinkingAnalyticsAPITAMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThinkingAnalyticsThinkingAnalyticsAPITAMode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThinkingAnalyticsThinkingAnalyticsAPITAMode_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode ,value="+val); } LuaAPI.lua_getref(L, ThinkingAnalyticsThinkingAnalyticsAPITAMode_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThinkingAnalyticsThinkingAnalyticsAPITAMode_TypeID) { throw new Exception("invalid userdata for ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode"); } val = (ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode)e; } else { val = (ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode)objectCasters.GetCaster(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode))(L, index, null); } } public void UpdateThinkingAnalyticsThinkingAnalyticsAPITAMode(RealStatePtr L, int index, ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThinkingAnalyticsThinkingAnalyticsAPITAMode_TypeID) { throw new Exception("invalid userdata for ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThinkingAnalyticsThinkingAnalyticsAPINetworkType_TypeID = -1; int ThinkingAnalyticsThinkingAnalyticsAPINetworkType_EnumRef = -1; public void PushThinkingAnalyticsThinkingAnalyticsAPINetworkType(RealStatePtr L, ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType val) { if (ThinkingAnalyticsThinkingAnalyticsAPINetworkType_TypeID == -1) { bool is_first; ThinkingAnalyticsThinkingAnalyticsAPINetworkType_TypeID = getTypeId(L, typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType), out is_first); if (ThinkingAnalyticsThinkingAnalyticsAPINetworkType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType)); ThinkingAnalyticsThinkingAnalyticsAPINetworkType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThinkingAnalyticsThinkingAnalyticsAPINetworkType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThinkingAnalyticsThinkingAnalyticsAPINetworkType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType ,value="+val); } LuaAPI.lua_getref(L, ThinkingAnalyticsThinkingAnalyticsAPINetworkType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThinkingAnalyticsThinkingAnalyticsAPINetworkType_TypeID) { throw new Exception("invalid userdata for ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType"); } val = (ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType)e; } else { val = (ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType)objectCasters.GetCaster(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType))(L, index, null); } } public void UpdateThinkingAnalyticsThinkingAnalyticsAPINetworkType(RealStatePtr L, int index, ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThinkingAnalyticsThinkingAnalyticsAPINetworkType_TypeID) { throw new Exception("invalid userdata for ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int HttpRequestState_TypeID = -1; int HttpRequestState_EnumRef = -1; public void PushHttpRequestState(RealStatePtr L, Http.RequestState val) { if (HttpRequestState_TypeID == -1) { bool is_first; HttpRequestState_TypeID = getTypeId(L, typeof(Http.RequestState), out is_first); if (HttpRequestState_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Http.RequestState)); HttpRequestState_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, HttpRequestState_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, HttpRequestState_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Http.RequestState ,value="+val); } LuaAPI.lua_getref(L, HttpRequestState_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out Http.RequestState val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != HttpRequestState_TypeID) { throw new Exception("invalid userdata for Http.RequestState"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Http.RequestState"); } val = (Http.RequestState)e; } else { val = (Http.RequestState)objectCasters.GetCaster(typeof(Http.RequestState))(L, index, null); } } public void UpdateHttpRequestState(RealStatePtr L, int index, Http.RequestState val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != HttpRequestState_TypeID) { throw new Exception("invalid userdata for Http.RequestState"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Http.RequestState ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEnginePurchasingProductType_TypeID = -1; int UnityEnginePurchasingProductType_EnumRef = -1; public void PushUnityEnginePurchasingProductType(RealStatePtr L, UnityEngine.Purchasing.ProductType val) { if (UnityEnginePurchasingProductType_TypeID == -1) { bool is_first; UnityEnginePurchasingProductType_TypeID = getTypeId(L, typeof(UnityEngine.Purchasing.ProductType), out is_first); if (UnityEnginePurchasingProductType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.Purchasing.ProductType)); UnityEnginePurchasingProductType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEnginePurchasingProductType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEnginePurchasingProductType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.Purchasing.ProductType ,value="+val); } LuaAPI.lua_getref(L, UnityEnginePurchasingProductType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out UnityEngine.Purchasing.ProductType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEnginePurchasingProductType_TypeID) { throw new Exception("invalid userdata for UnityEngine.Purchasing.ProductType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.Purchasing.ProductType"); } val = (UnityEngine.Purchasing.ProductType)e; } else { val = (UnityEngine.Purchasing.ProductType)objectCasters.GetCaster(typeof(UnityEngine.Purchasing.ProductType))(L, index, null); } } public void UpdateUnityEnginePurchasingProductType(RealStatePtr L, int index, UnityEngine.Purchasing.ProductType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEnginePurchasingProductType_TypeID) { throw new Exception("invalid userdata for UnityEngine.Purchasing.ProductType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.Purchasing.ProductType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int BFBFSliderFillDirection_TypeID = -1; int BFBFSliderFillDirection_EnumRef = -1; public void PushBFBFSliderFillDirection(RealStatePtr L, BF.BFSlider.FillDirection val) { if (BFBFSliderFillDirection_TypeID == -1) { bool is_first; BFBFSliderFillDirection_TypeID = getTypeId(L, typeof(BF.BFSlider.FillDirection), out is_first); if (BFBFSliderFillDirection_EnumRef == -1) { Utils.LoadCSTable(L, typeof(BF.BFSlider.FillDirection)); BFBFSliderFillDirection_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, BFBFSliderFillDirection_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, BFBFSliderFillDirection_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for BF.BFSlider.FillDirection ,value="+val); } LuaAPI.lua_getref(L, BFBFSliderFillDirection_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out BF.BFSlider.FillDirection val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != BFBFSliderFillDirection_TypeID) { throw new Exception("invalid userdata for BF.BFSlider.FillDirection"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for BF.BFSlider.FillDirection"); } val = (BF.BFSlider.FillDirection)e; } else { val = (BF.BFSlider.FillDirection)objectCasters.GetCaster(typeof(BF.BFSlider.FillDirection))(L, index, null); } } public void UpdateBFBFSliderFillDirection(RealStatePtr L, int index, BF.BFSlider.FillDirection val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != BFBFSliderFillDirection_TypeID) { throw new Exception("invalid userdata for BF.BFSlider.FillDirection"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for BF.BFSlider.FillDirection ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int BFScrollRectBaseOldMovementType_TypeID = -1; int BFScrollRectBaseOldMovementType_EnumRef = -1; public void PushBFScrollRectBaseOldMovementType(RealStatePtr L, BF.ScrollRectBaseOld.MovementType val) { if (BFScrollRectBaseOldMovementType_TypeID == -1) { bool is_first; BFScrollRectBaseOldMovementType_TypeID = getTypeId(L, typeof(BF.ScrollRectBaseOld.MovementType), out is_first); if (BFScrollRectBaseOldMovementType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(BF.ScrollRectBaseOld.MovementType)); BFScrollRectBaseOldMovementType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, BFScrollRectBaseOldMovementType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, BFScrollRectBaseOldMovementType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for BF.ScrollRectBaseOld.MovementType ,value="+val); } LuaAPI.lua_getref(L, BFScrollRectBaseOldMovementType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out BF.ScrollRectBaseOld.MovementType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != BFScrollRectBaseOldMovementType_TypeID) { throw new Exception("invalid userdata for BF.ScrollRectBaseOld.MovementType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for BF.ScrollRectBaseOld.MovementType"); } val = (BF.ScrollRectBaseOld.MovementType)e; } else { val = (BF.ScrollRectBaseOld.MovementType)objectCasters.GetCaster(typeof(BF.ScrollRectBaseOld.MovementType))(L, index, null); } } public void UpdateBFScrollRectBaseOldMovementType(RealStatePtr L, int index, BF.ScrollRectBaseOld.MovementType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != BFScrollRectBaseOldMovementType_TypeID) { throw new Exception("invalid userdata for BF.ScrollRectBaseOld.MovementType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for BF.ScrollRectBaseOld.MovementType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int BFScrollRectBaseOldScrollbarVisibility_TypeID = -1; int BFScrollRectBaseOldScrollbarVisibility_EnumRef = -1; public void PushBFScrollRectBaseOldScrollbarVisibility(RealStatePtr L, BF.ScrollRectBaseOld.ScrollbarVisibility val) { if (BFScrollRectBaseOldScrollbarVisibility_TypeID == -1) { bool is_first; BFScrollRectBaseOldScrollbarVisibility_TypeID = getTypeId(L, typeof(BF.ScrollRectBaseOld.ScrollbarVisibility), out is_first); if (BFScrollRectBaseOldScrollbarVisibility_EnumRef == -1) { Utils.LoadCSTable(L, typeof(BF.ScrollRectBaseOld.ScrollbarVisibility)); BFScrollRectBaseOldScrollbarVisibility_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, BFScrollRectBaseOldScrollbarVisibility_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, BFScrollRectBaseOldScrollbarVisibility_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for BF.ScrollRectBaseOld.ScrollbarVisibility ,value="+val); } LuaAPI.lua_getref(L, BFScrollRectBaseOldScrollbarVisibility_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out BF.ScrollRectBaseOld.ScrollbarVisibility val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != BFScrollRectBaseOldScrollbarVisibility_TypeID) { throw new Exception("invalid userdata for BF.ScrollRectBaseOld.ScrollbarVisibility"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for BF.ScrollRectBaseOld.ScrollbarVisibility"); } val = (BF.ScrollRectBaseOld.ScrollbarVisibility)e; } else { val = (BF.ScrollRectBaseOld.ScrollbarVisibility)objectCasters.GetCaster(typeof(BF.ScrollRectBaseOld.ScrollbarVisibility))(L, index, null); } } public void UpdateBFScrollRectBaseOldScrollbarVisibility(RealStatePtr L, int index, BF.ScrollRectBaseOld.ScrollbarVisibility val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != BFScrollRectBaseOldScrollbarVisibility_TypeID) { throw new Exception("invalid userdata for BF.ScrollRectBaseOld.ScrollbarVisibility"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for BF.ScrollRectBaseOld.ScrollbarVisibility ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int BFNetServiceType_TypeID = -1; int BFNetServiceType_EnumRef = -1; public void PushBFNetServiceType(RealStatePtr L, BF.NetServiceType val) { if (BFNetServiceType_TypeID == -1) { bool is_first; BFNetServiceType_TypeID = getTypeId(L, typeof(BF.NetServiceType), out is_first); if (BFNetServiceType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(BF.NetServiceType)); BFNetServiceType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, BFNetServiceType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, BFNetServiceType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for BF.NetServiceType ,value="+val); } LuaAPI.lua_getref(L, BFNetServiceType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out BF.NetServiceType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != BFNetServiceType_TypeID) { throw new Exception("invalid userdata for BF.NetServiceType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for BF.NetServiceType"); } val = (BF.NetServiceType)e; } else { val = (BF.NetServiceType)objectCasters.GetCaster(typeof(BF.NetServiceType))(L, index, null); } } public void UpdateBFNetServiceType(RealStatePtr L, int index, BF.NetServiceType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != BFNetServiceType_TypeID) { throw new Exception("invalid userdata for BF.NetServiceType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for BF.NetServiceType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int BFNetIncomingMessageType_TypeID = -1; int BFNetIncomingMessageType_EnumRef = -1; public void PushBFNetIncomingMessageType(RealStatePtr L, BF.NetIncomingMessageType val) { if (BFNetIncomingMessageType_TypeID == -1) { bool is_first; BFNetIncomingMessageType_TypeID = getTypeId(L, typeof(BF.NetIncomingMessageType), out is_first); if (BFNetIncomingMessageType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(BF.NetIncomingMessageType)); BFNetIncomingMessageType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, BFNetIncomingMessageType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, BFNetIncomingMessageType_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for BF.NetIncomingMessageType ,value="+val); } LuaAPI.lua_getref(L, BFNetIncomingMessageType_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out BF.NetIncomingMessageType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != BFNetIncomingMessageType_TypeID) { throw new Exception("invalid userdata for BF.NetIncomingMessageType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for BF.NetIncomingMessageType"); } val = (BF.NetIncomingMessageType)e; } else { val = (BF.NetIncomingMessageType)objectCasters.GetCaster(typeof(BF.NetIncomingMessageType))(L, index, null); } } public void UpdateBFNetIncomingMessageType(RealStatePtr L, int index, BF.NetIncomingMessageType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != BFNetIncomingMessageType_TypeID) { throw new Exception("invalid userdata for BF.NetIncomingMessageType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for BF.NetIncomingMessageType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int BFBFGridLayoutCorner_TypeID = -1; int BFBFGridLayoutCorner_EnumRef = -1; public void PushBFBFGridLayoutCorner(RealStatePtr L, BF.BFGridLayout.Corner val) { if (BFBFGridLayoutCorner_TypeID == -1) { bool is_first; BFBFGridLayoutCorner_TypeID = getTypeId(L, typeof(BF.BFGridLayout.Corner), out is_first); if (BFBFGridLayoutCorner_EnumRef == -1) { Utils.LoadCSTable(L, typeof(BF.BFGridLayout.Corner)); BFBFGridLayoutCorner_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, BFBFGridLayoutCorner_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, BFBFGridLayoutCorner_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for BF.BFGridLayout.Corner ,value="+val); } LuaAPI.lua_getref(L, BFBFGridLayoutCorner_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out BF.BFGridLayout.Corner val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != BFBFGridLayoutCorner_TypeID) { throw new Exception("invalid userdata for BF.BFGridLayout.Corner"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for BF.BFGridLayout.Corner"); } val = (BF.BFGridLayout.Corner)e; } else { val = (BF.BFGridLayout.Corner)objectCasters.GetCaster(typeof(BF.BFGridLayout.Corner))(L, index, null); } } public void UpdateBFBFGridLayoutCorner(RealStatePtr L, int index, BF.BFGridLayout.Corner val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != BFBFGridLayoutCorner_TypeID) { throw new Exception("invalid userdata for BF.BFGridLayout.Corner"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for BF.BFGridLayout.Corner ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int BFBFGridLayoutConstraint_TypeID = -1; int BFBFGridLayoutConstraint_EnumRef = -1; public void PushBFBFGridLayoutConstraint(RealStatePtr L, BF.BFGridLayout.Constraint val) { if (BFBFGridLayoutConstraint_TypeID == -1) { bool is_first; BFBFGridLayoutConstraint_TypeID = getTypeId(L, typeof(BF.BFGridLayout.Constraint), out is_first); if (BFBFGridLayoutConstraint_EnumRef == -1) { Utils.LoadCSTable(L, typeof(BF.BFGridLayout.Constraint)); BFBFGridLayoutConstraint_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, BFBFGridLayoutConstraint_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, BFBFGridLayoutConstraint_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for BF.BFGridLayout.Constraint ,value="+val); } LuaAPI.lua_getref(L, BFBFGridLayoutConstraint_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); } public void Get(RealStatePtr L, int index, out BF.BFGridLayout.Constraint val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != BFBFGridLayoutConstraint_TypeID) { throw new Exception("invalid userdata for BF.BFGridLayout.Constraint"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for BF.BFGridLayout.Constraint"); } val = (BF.BFGridLayout.Constraint)e; } else { val = (BF.BFGridLayout.Constraint)objectCasters.GetCaster(typeof(BF.BFGridLayout.Constraint))(L, index, null); } } public void UpdateBFBFGridLayoutConstraint(RealStatePtr L, int index, BF.BFGridLayout.Constraint val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != BFBFGridLayoutConstraint_TypeID) { throw new Exception("invalid userdata for BF.BFGridLayout.Constraint"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for BF.BFGridLayout.Constraint ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } // table cast optimze } public partial class StaticLuaCallbacks { internal static bool __tryArrayGet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int index) { if (type == typeof(UnityEngine.Vector2[])) { UnityEngine.Vector2[] array = obj as UnityEngine.Vector2[]; translator.PushUnityEngineVector2(L, array[index]); return true; } else if (type == typeof(UnityEngine.Vector3[])) { UnityEngine.Vector3[] array = obj as UnityEngine.Vector3[]; translator.PushUnityEngineVector3(L, array[index]); return true; } else if (type == typeof(UnityEngine.Vector4[])) { UnityEngine.Vector4[] array = obj as UnityEngine.Vector4[]; translator.PushUnityEngineVector4(L, array[index]); return true; } else if (type == typeof(UnityEngine.Color[])) { UnityEngine.Color[] array = obj as UnityEngine.Color[]; translator.PushUnityEngineColor(L, array[index]); return true; } else if (type == typeof(UnityEngine.Quaternion[])) { UnityEngine.Quaternion[] array = obj as UnityEngine.Quaternion[]; translator.PushUnityEngineQuaternion(L, array[index]); return true; } else if (type == typeof(UnityEngine.Ray[])) { UnityEngine.Ray[] array = obj as UnityEngine.Ray[]; translator.PushUnityEngineRay(L, array[index]); return true; } else if (type == typeof(UnityEngine.Bounds[])) { UnityEngine.Bounds[] array = obj as UnityEngine.Bounds[]; translator.PushUnityEngineBounds(L, array[index]); return true; } else if (type == typeof(UnityEngine.Ray2D[])) { UnityEngine.Ray2D[] array = obj as UnityEngine.Ray2D[]; translator.PushUnityEngineRay2D(L, array[index]); return true; } else if (type == typeof(AdFormat[])) { AdFormat[] array = obj as AdFormat[]; translator.PushAdFormat(L, array[index]); return true; } else if (type == typeof(IronSourceBannerPosition[])) { IronSourceBannerPosition[] array = obj as IronSourceBannerPosition[]; translator.PushIronSourceBannerPosition(L, array[index]); return true; } else if (type == typeof(ISAdQualityDeviceIdType[])) { ISAdQualityDeviceIdType[] array = obj as ISAdQualityDeviceIdType[]; translator.PushISAdQualityDeviceIdType(L, array[index]); return true; } else if (type == typeof(ISAdQualityAdType[])) { ISAdQualityAdType[] array = obj as ISAdQualityAdType[]; translator.PushISAdQualityAdType(L, array[index]); return true; } else if (type == typeof(ISAdQualityInitError[])) { ISAdQualityInitError[] array = obj as ISAdQualityInitError[]; translator.PushISAdQualityInitError(L, array[index]); return true; } else if (type == typeof(ISAdQualityLogLevel[])) { ISAdQualityLogLevel[] array = obj as ISAdQualityLogLevel[]; translator.PushISAdQualityLogLevel(L, array[index]); return true; } else if (type == typeof(ISAdQualityMediationNetwork[])) { ISAdQualityMediationNetwork[] array = obj as ISAdQualityMediationNetwork[]; translator.PushISAdQualityMediationNetwork(L, array[index]); return true; } else if (type == typeof(UIImageSheetAnimation.AnimationType[])) { UIImageSheetAnimation.AnimationType[] array = obj as UIImageSheetAnimation.AnimationType[]; translator.PushUIImageSheetAnimationAnimationType(L, array[index]); return true; } else if (type == typeof(UIImageSheetAnimation.TimeType[])) { UIImageSheetAnimation.TimeType[] array = obj as UIImageSheetAnimation.TimeType[]; translator.PushUIImageSheetAnimationTimeType(L, array[index]); return true; } else if (type == typeof(UIImageSheetAnimation.StartFrameType[])) { UIImageSheetAnimation.StartFrameType[] array = obj as UIImageSheetAnimation.StartFrameType[]; translator.PushUIImageSheetAnimationStartFrameType(L, array[index]); return true; } else if (type == typeof(System.Reflection.BindingFlags[])) { System.Reflection.BindingFlags[] array = obj as System.Reflection.BindingFlags[]; translator.PushSystemReflectionBindingFlags(L, array[index]); return true; } else if (type == typeof(System.DayOfWeek[])) { System.DayOfWeek[] array = obj as System.DayOfWeek[]; translator.PushSystemDayOfWeek(L, array[index]); return true; } else if (type == typeof(System.Net.NetworkInformation.IPStatus[])) { System.Net.NetworkInformation.IPStatus[] array = obj as System.Net.NetworkInformation.IPStatus[]; translator.PushSystemNetNetworkInformationIPStatus(L, array[index]); return true; } else if (type == typeof(UnityEngine.Camera.FieldOfViewAxis[])) { UnityEngine.Camera.FieldOfViewAxis[] array = obj as UnityEngine.Camera.FieldOfViewAxis[]; translator.PushUnityEngineCameraFieldOfViewAxis(L, array[index]); return true; } else if (type == typeof(UnityEngine.Camera.RenderRequestMode[])) { UnityEngine.Camera.RenderRequestMode[] array = obj as UnityEngine.Camera.RenderRequestMode[]; translator.PushUnityEngineCameraRenderRequestMode(L, array[index]); return true; } else if (type == typeof(UnityEngine.Camera.RenderRequestOutputSpace[])) { UnityEngine.Camera.RenderRequestOutputSpace[] array = obj as UnityEngine.Camera.RenderRequestOutputSpace[]; translator.PushUnityEngineCameraRenderRequestOutputSpace(L, array[index]); return true; } else if (type == typeof(UnityEngine.Rendering.LightShadowResolution[])) { UnityEngine.Rendering.LightShadowResolution[] array = obj as UnityEngine.Rendering.LightShadowResolution[]; translator.PushUnityEngineRenderingLightShadowResolution(L, array[index]); return true; } else if (type == typeof(UnityEngine.RenderTextureFormat[])) { UnityEngine.RenderTextureFormat[] array = obj as UnityEngine.RenderTextureFormat[]; translator.PushUnityEngineRenderTextureFormat(L, array[index]); return true; } else if (type == typeof(UnityEngine.RenderTextureReadWrite[])) { UnityEngine.RenderTextureReadWrite[] array = obj as UnityEngine.RenderTextureReadWrite[]; translator.PushUnityEngineRenderTextureReadWrite(L, array[index]); return true; } else if (type == typeof(UnityEngine.RigidbodyConstraints[])) { UnityEngine.RigidbodyConstraints[] array = obj as UnityEngine.RigidbodyConstraints[]; translator.PushUnityEngineRigidbodyConstraints(L, array[index]); return true; } else if (type == typeof(UnityEngine.TransparencySortMode[])) { UnityEngine.TransparencySortMode[] array = obj as UnityEngine.TransparencySortMode[]; translator.PushUnityEngineTransparencySortMode(L, array[index]); return true; } else if (type == typeof(UnityEngine.RectTransform.Axis[])) { UnityEngine.RectTransform.Axis[] array = obj as UnityEngine.RectTransform.Axis[]; translator.PushUnityEngineRectTransformAxis(L, array[index]); return true; } else if (type == typeof(UnityEngine.RectTransform.Edge[])) { UnityEngine.RectTransform.Edge[] array = obj as UnityEngine.RectTransform.Edge[]; translator.PushUnityEngineRectTransformEdge(L, array[index]); return true; } else if (type == typeof(UnityEngine.AnimatorCullingMode[])) { UnityEngine.AnimatorCullingMode[] array = obj as UnityEngine.AnimatorCullingMode[]; translator.PushUnityEngineAnimatorCullingMode(L, array[index]); return true; } else if (type == typeof(UnityEngine.SystemLanguage[])) { UnityEngine.SystemLanguage[] array = obj as UnityEngine.SystemLanguage[]; translator.PushUnityEngineSystemLanguage(L, array[index]); return true; } else if (type == typeof(UnityEngine.Rendering.ShadowCastingMode[])) { UnityEngine.Rendering.ShadowCastingMode[] array = obj as UnityEngine.Rendering.ShadowCastingMode[]; translator.PushUnityEngineRenderingShadowCastingMode(L, array[index]); return true; } else if (type == typeof(UnityEngine.Camera.GateFitMode[])) { UnityEngine.Camera.GateFitMode[] array = obj as UnityEngine.Camera.GateFitMode[]; translator.PushUnityEngineCameraGateFitMode(L, array[index]); return true; } else if (type == typeof(UnityEngine.Camera.StereoscopicEye[])) { UnityEngine.Camera.StereoscopicEye[] array = obj as UnityEngine.Camera.StereoscopicEye[]; translator.PushUnityEngineCameraStereoscopicEye(L, array[index]); return true; } else if (type == typeof(UnityEngine.Camera.MonoOrStereoscopicEye[])) { UnityEngine.Camera.MonoOrStereoscopicEye[] array = obj as UnityEngine.Camera.MonoOrStereoscopicEye[]; translator.PushUnityEngineCameraMonoOrStereoscopicEye(L, array[index]); return true; } else if (type == typeof(UnityEngine.Texture2D.EXRFlags[])) { UnityEngine.Texture2D.EXRFlags[] array = obj as UnityEngine.Texture2D.EXRFlags[]; translator.PushUnityEngineTexture2DEXRFlags(L, array[index]); return true; } else if (type == typeof(UnityEngine.KeyCode[])) { UnityEngine.KeyCode[] array = obj as UnityEngine.KeyCode[]; translator.PushUnityEngineKeyCode(L, array[index]); return true; } else if (type == typeof(UnityEngine.NetworkReachability[])) { UnityEngine.NetworkReachability[] array = obj as UnityEngine.NetworkReachability[]; translator.PushUnityEngineNetworkReachability(L, array[index]); return true; } else if (type == typeof(UnityEngine.RuntimePlatform[])) { UnityEngine.RuntimePlatform[] array = obj as UnityEngine.RuntimePlatform[]; translator.PushUnityEngineRuntimePlatform(L, array[index]); return true; } else if (type == typeof(UnityEngine.Rendering.CompareFunction[])) { UnityEngine.Rendering.CompareFunction[] array = obj as UnityEngine.Rendering.CompareFunction[]; translator.PushUnityEngineRenderingCompareFunction(L, array[index]); return true; } else if (type == typeof(UnityEngine.TextAnchor[])) { UnityEngine.TextAnchor[] array = obj as UnityEngine.TextAnchor[]; translator.PushUnityEngineTextAnchor(L, array[index]); return true; } else if (type == typeof(UnityEngine.BatteryStatus[])) { UnityEngine.BatteryStatus[] array = obj as UnityEngine.BatteryStatus[]; translator.PushUnityEngineBatteryStatus(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects[])) { UnityEngine.UI.GraphicRaycaster.BlockingObjects[] array = obj as UnityEngine.UI.GraphicRaycaster.BlockingObjects[]; translator.PushUnityEngineUIGraphicRaycasterBlockingObjects(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.Image.Type[])) { UnityEngine.UI.Image.Type[] array = obj as UnityEngine.UI.Image.Type[]; translator.PushUnityEngineUIImageType(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.Image.FillMethod[])) { UnityEngine.UI.Image.FillMethod[] array = obj as UnityEngine.UI.Image.FillMethod[]; translator.PushUnityEngineUIImageFillMethod(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.Image.OriginHorizontal[])) { UnityEngine.UI.Image.OriginHorizontal[] array = obj as UnityEngine.UI.Image.OriginHorizontal[]; translator.PushUnityEngineUIImageOriginHorizontal(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.Image.OriginVertical[])) { UnityEngine.UI.Image.OriginVertical[] array = obj as UnityEngine.UI.Image.OriginVertical[]; translator.PushUnityEngineUIImageOriginVertical(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.Image.Origin90[])) { UnityEngine.UI.Image.Origin90[] array = obj as UnityEngine.UI.Image.Origin90[]; translator.PushUnityEngineUIImageOrigin90(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.Image.Origin180[])) { UnityEngine.UI.Image.Origin180[] array = obj as UnityEngine.UI.Image.Origin180[]; translator.PushUnityEngineUIImageOrigin180(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.Image.Origin360[])) { UnityEngine.UI.Image.Origin360[] array = obj as UnityEngine.UI.Image.Origin360[]; translator.PushUnityEngineUIImageOrigin360(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.InputField.ContentType[])) { UnityEngine.UI.InputField.ContentType[] array = obj as UnityEngine.UI.InputField.ContentType[]; translator.PushUnityEngineUIInputFieldContentType(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.InputField.InputType[])) { UnityEngine.UI.InputField.InputType[] array = obj as UnityEngine.UI.InputField.InputType[]; translator.PushUnityEngineUIInputFieldInputType(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.InputField.CharacterValidation[])) { UnityEngine.UI.InputField.CharacterValidation[] array = obj as UnityEngine.UI.InputField.CharacterValidation[]; translator.PushUnityEngineUIInputFieldCharacterValidation(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.InputField.LineType[])) { UnityEngine.UI.InputField.LineType[] array = obj as UnityEngine.UI.InputField.LineType[]; translator.PushUnityEngineUIInputFieldLineType(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.ScrollRect.MovementType[])) { UnityEngine.UI.ScrollRect.MovementType[] array = obj as UnityEngine.UI.ScrollRect.MovementType[]; translator.PushUnityEngineUIScrollRectMovementType(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility[])) { UnityEngine.UI.ScrollRect.ScrollbarVisibility[] array = obj as UnityEngine.UI.ScrollRect.ScrollbarVisibility[]; translator.PushUnityEngineUIScrollRectScrollbarVisibility(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.Slider.Direction[])) { UnityEngine.UI.Slider.Direction[] array = obj as UnityEngine.UI.Slider.Direction[]; translator.PushUnityEngineUISliderDirection(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.Toggle.ToggleTransition[])) { UnityEngine.UI.Toggle.ToggleTransition[] array = obj as UnityEngine.UI.Toggle.ToggleTransition[]; translator.PushUnityEngineUIToggleToggleTransition(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.GridLayoutGroup.Corner[])) { UnityEngine.UI.GridLayoutGroup.Corner[] array = obj as UnityEngine.UI.GridLayoutGroup.Corner[]; translator.PushUnityEngineUIGridLayoutGroupCorner(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.GridLayoutGroup.Axis[])) { UnityEngine.UI.GridLayoutGroup.Axis[] array = obj as UnityEngine.UI.GridLayoutGroup.Axis[]; translator.PushUnityEngineUIGridLayoutGroupAxis(L, array[index]); return true; } else if (type == typeof(UnityEngine.UI.GridLayoutGroup.Constraint[])) { UnityEngine.UI.GridLayoutGroup.Constraint[] array = obj as UnityEngine.UI.GridLayoutGroup.Constraint[]; translator.PushUnityEngineUIGridLayoutGroupConstraint(L, array[index]); return true; } else if (type == typeof(Spine.Unity.BoneFollower.AxisOrientation[])) { Spine.Unity.BoneFollower.AxisOrientation[] array = obj as Spine.Unity.BoneFollower.AxisOrientation[]; translator.PushSpineUnityBoneFollowerAxisOrientation(L, array[index]); return true; } else if (type == typeof(TMPro.TextAlignmentOptions[])) { TMPro.TextAlignmentOptions[] array = obj as TMPro.TextAlignmentOptions[]; translator.PushTMProTextAlignmentOptions(L, array[index]); return true; } else if (type == typeof(TMPro.TMP_InputField.ContentType[])) { TMPro.TMP_InputField.ContentType[] array = obj as TMPro.TMP_InputField.ContentType[]; translator.PushTMProTMP_InputFieldContentType(L, array[index]); return true; } else if (type == typeof(TMPro.TMP_InputField.InputType[])) { TMPro.TMP_InputField.InputType[] array = obj as TMPro.TMP_InputField.InputType[]; translator.PushTMProTMP_InputFieldInputType(L, array[index]); return true; } else if (type == typeof(TMPro.TMP_InputField.CharacterValidation[])) { TMPro.TMP_InputField.CharacterValidation[] array = obj as TMPro.TMP_InputField.CharacterValidation[]; translator.PushTMProTMP_InputFieldCharacterValidation(L, array[index]); return true; } else if (type == typeof(TMPro.TMP_InputField.LineType[])) { TMPro.TMP_InputField.LineType[] array = obj as TMPro.TMP_InputField.LineType[]; translator.PushTMProTMP_InputFieldLineType(L, array[index]); return true; } else if (type == typeof(DG.Tweening.AutoPlay[])) { DG.Tweening.AutoPlay[] array = obj as DG.Tweening.AutoPlay[]; translator.PushDGTweeningAutoPlay(L, array[index]); return true; } else if (type == typeof(DG.Tweening.AxisConstraint[])) { DG.Tweening.AxisConstraint[] array = obj as DG.Tweening.AxisConstraint[]; translator.PushDGTweeningAxisConstraint(L, array[index]); return true; } else if (type == typeof(DG.Tweening.Ease[])) { DG.Tweening.Ease[] array = obj as DG.Tweening.Ease[]; translator.PushDGTweeningEase(L, array[index]); return true; } else if (type == typeof(DG.Tweening.LogBehaviour[])) { DG.Tweening.LogBehaviour[] array = obj as DG.Tweening.LogBehaviour[]; translator.PushDGTweeningLogBehaviour(L, array[index]); return true; } else if (type == typeof(DG.Tweening.LoopType[])) { DG.Tweening.LoopType[] array = obj as DG.Tweening.LoopType[]; translator.PushDGTweeningLoopType(L, array[index]); return true; } else if (type == typeof(DG.Tweening.PathMode[])) { DG.Tweening.PathMode[] array = obj as DG.Tweening.PathMode[]; translator.PushDGTweeningPathMode(L, array[index]); return true; } else if (type == typeof(DG.Tweening.PathType[])) { DG.Tweening.PathType[] array = obj as DG.Tweening.PathType[]; translator.PushDGTweeningPathType(L, array[index]); return true; } else if (type == typeof(DG.Tweening.RotateMode[])) { DG.Tweening.RotateMode[] array = obj as DG.Tweening.RotateMode[]; translator.PushDGTweeningRotateMode(L, array[index]); return true; } else if (type == typeof(DG.Tweening.ScrambleMode[])) { DG.Tweening.ScrambleMode[] array = obj as DG.Tweening.ScrambleMode[]; translator.PushDGTweeningScrambleMode(L, array[index]); return true; } else if (type == typeof(DG.Tweening.TweenType[])) { DG.Tweening.TweenType[] array = obj as DG.Tweening.TweenType[]; translator.PushDGTweeningTweenType(L, array[index]); return true; } else if (type == typeof(DG.Tweening.UpdateType[])) { DG.Tweening.UpdateType[] array = obj as DG.Tweening.UpdateType[]; translator.PushDGTweeningUpdateType(L, array[index]); return true; } else if (type == typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone[])) { ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone[] array = obj as ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone[]; translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, array[index]); return true; } else if (type == typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode[])) { ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode[] array = obj as ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode[]; translator.PushThinkingAnalyticsThinkingAnalyticsAPITAMode(L, array[index]); return true; } else if (type == typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType[])) { ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType[] array = obj as ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType[]; translator.PushThinkingAnalyticsThinkingAnalyticsAPINetworkType(L, array[index]); return true; } else if (type == typeof(Http.RequestState[])) { Http.RequestState[] array = obj as Http.RequestState[]; translator.PushHttpRequestState(L, array[index]); return true; } else if (type == typeof(UnityEngine.Purchasing.ProductType[])) { UnityEngine.Purchasing.ProductType[] array = obj as UnityEngine.Purchasing.ProductType[]; translator.PushUnityEnginePurchasingProductType(L, array[index]); return true; } else if (type == typeof(BF.BFSlider.FillDirection[])) { BF.BFSlider.FillDirection[] array = obj as BF.BFSlider.FillDirection[]; translator.PushBFBFSliderFillDirection(L, array[index]); return true; } else if (type == typeof(BF.ScrollRectBaseOld.MovementType[])) { BF.ScrollRectBaseOld.MovementType[] array = obj as BF.ScrollRectBaseOld.MovementType[]; translator.PushBFScrollRectBaseOldMovementType(L, array[index]); return true; } else if (type == typeof(BF.ScrollRectBaseOld.ScrollbarVisibility[])) { BF.ScrollRectBaseOld.ScrollbarVisibility[] array = obj as BF.ScrollRectBaseOld.ScrollbarVisibility[]; translator.PushBFScrollRectBaseOldScrollbarVisibility(L, array[index]); return true; } else if (type == typeof(BF.NetServiceType[])) { BF.NetServiceType[] array = obj as BF.NetServiceType[]; translator.PushBFNetServiceType(L, array[index]); return true; } else if (type == typeof(BF.NetIncomingMessageType[])) { BF.NetIncomingMessageType[] array = obj as BF.NetIncomingMessageType[]; translator.PushBFNetIncomingMessageType(L, array[index]); return true; } else if (type == typeof(BF.BFGridLayout.Corner[])) { BF.BFGridLayout.Corner[] array = obj as BF.BFGridLayout.Corner[]; translator.PushBFBFGridLayoutCorner(L, array[index]); return true; } else if (type == typeof(BF.BFGridLayout.Constraint[])) { BF.BFGridLayout.Constraint[] array = obj as BF.BFGridLayout.Constraint[]; translator.PushBFBFGridLayoutConstraint(L, array[index]); return true; } return false; } internal static bool __tryArraySet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int array_idx, int obj_idx) { if (type == typeof(UnityEngine.Vector2[])) { UnityEngine.Vector2[] array = obj as UnityEngine.Vector2[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Vector3[])) { UnityEngine.Vector3[] array = obj as UnityEngine.Vector3[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Vector4[])) { UnityEngine.Vector4[] array = obj as UnityEngine.Vector4[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Color[])) { UnityEngine.Color[] array = obj as UnityEngine.Color[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Quaternion[])) { UnityEngine.Quaternion[] array = obj as UnityEngine.Quaternion[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Ray[])) { UnityEngine.Ray[] array = obj as UnityEngine.Ray[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Bounds[])) { UnityEngine.Bounds[] array = obj as UnityEngine.Bounds[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Ray2D[])) { UnityEngine.Ray2D[] array = obj as UnityEngine.Ray2D[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(AdFormat[])) { AdFormat[] array = obj as AdFormat[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(IronSourceBannerPosition[])) { IronSourceBannerPosition[] array = obj as IronSourceBannerPosition[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(ISAdQualityDeviceIdType[])) { ISAdQualityDeviceIdType[] array = obj as ISAdQualityDeviceIdType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(ISAdQualityAdType[])) { ISAdQualityAdType[] array = obj as ISAdQualityAdType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(ISAdQualityInitError[])) { ISAdQualityInitError[] array = obj as ISAdQualityInitError[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(ISAdQualityLogLevel[])) { ISAdQualityLogLevel[] array = obj as ISAdQualityLogLevel[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(ISAdQualityMediationNetwork[])) { ISAdQualityMediationNetwork[] array = obj as ISAdQualityMediationNetwork[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIImageSheetAnimation.AnimationType[])) { UIImageSheetAnimation.AnimationType[] array = obj as UIImageSheetAnimation.AnimationType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIImageSheetAnimation.TimeType[])) { UIImageSheetAnimation.TimeType[] array = obj as UIImageSheetAnimation.TimeType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIImageSheetAnimation.StartFrameType[])) { UIImageSheetAnimation.StartFrameType[] array = obj as UIImageSheetAnimation.StartFrameType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(System.Reflection.BindingFlags[])) { System.Reflection.BindingFlags[] array = obj as System.Reflection.BindingFlags[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(System.DayOfWeek[])) { System.DayOfWeek[] array = obj as System.DayOfWeek[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(System.Net.NetworkInformation.IPStatus[])) { System.Net.NetworkInformation.IPStatus[] array = obj as System.Net.NetworkInformation.IPStatus[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Camera.FieldOfViewAxis[])) { UnityEngine.Camera.FieldOfViewAxis[] array = obj as UnityEngine.Camera.FieldOfViewAxis[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Camera.RenderRequestMode[])) { UnityEngine.Camera.RenderRequestMode[] array = obj as UnityEngine.Camera.RenderRequestMode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Camera.RenderRequestOutputSpace[])) { UnityEngine.Camera.RenderRequestOutputSpace[] array = obj as UnityEngine.Camera.RenderRequestOutputSpace[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Rendering.LightShadowResolution[])) { UnityEngine.Rendering.LightShadowResolution[] array = obj as UnityEngine.Rendering.LightShadowResolution[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.RenderTextureFormat[])) { UnityEngine.RenderTextureFormat[] array = obj as UnityEngine.RenderTextureFormat[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.RenderTextureReadWrite[])) { UnityEngine.RenderTextureReadWrite[] array = obj as UnityEngine.RenderTextureReadWrite[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.RigidbodyConstraints[])) { UnityEngine.RigidbodyConstraints[] array = obj as UnityEngine.RigidbodyConstraints[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.TransparencySortMode[])) { UnityEngine.TransparencySortMode[] array = obj as UnityEngine.TransparencySortMode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.RectTransform.Axis[])) { UnityEngine.RectTransform.Axis[] array = obj as UnityEngine.RectTransform.Axis[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.RectTransform.Edge[])) { UnityEngine.RectTransform.Edge[] array = obj as UnityEngine.RectTransform.Edge[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.AnimatorCullingMode[])) { UnityEngine.AnimatorCullingMode[] array = obj as UnityEngine.AnimatorCullingMode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.SystemLanguage[])) { UnityEngine.SystemLanguage[] array = obj as UnityEngine.SystemLanguage[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Rendering.ShadowCastingMode[])) { UnityEngine.Rendering.ShadowCastingMode[] array = obj as UnityEngine.Rendering.ShadowCastingMode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Camera.GateFitMode[])) { UnityEngine.Camera.GateFitMode[] array = obj as UnityEngine.Camera.GateFitMode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Camera.StereoscopicEye[])) { UnityEngine.Camera.StereoscopicEye[] array = obj as UnityEngine.Camera.StereoscopicEye[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Camera.MonoOrStereoscopicEye[])) { UnityEngine.Camera.MonoOrStereoscopicEye[] array = obj as UnityEngine.Camera.MonoOrStereoscopicEye[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Texture2D.EXRFlags[])) { UnityEngine.Texture2D.EXRFlags[] array = obj as UnityEngine.Texture2D.EXRFlags[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.KeyCode[])) { UnityEngine.KeyCode[] array = obj as UnityEngine.KeyCode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.NetworkReachability[])) { UnityEngine.NetworkReachability[] array = obj as UnityEngine.NetworkReachability[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.RuntimePlatform[])) { UnityEngine.RuntimePlatform[] array = obj as UnityEngine.RuntimePlatform[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Rendering.CompareFunction[])) { UnityEngine.Rendering.CompareFunction[] array = obj as UnityEngine.Rendering.CompareFunction[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.TextAnchor[])) { UnityEngine.TextAnchor[] array = obj as UnityEngine.TextAnchor[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.BatteryStatus[])) { UnityEngine.BatteryStatus[] array = obj as UnityEngine.BatteryStatus[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects[])) { UnityEngine.UI.GraphicRaycaster.BlockingObjects[] array = obj as UnityEngine.UI.GraphicRaycaster.BlockingObjects[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.Image.Type[])) { UnityEngine.UI.Image.Type[] array = obj as UnityEngine.UI.Image.Type[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.Image.FillMethod[])) { UnityEngine.UI.Image.FillMethod[] array = obj as UnityEngine.UI.Image.FillMethod[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.Image.OriginHorizontal[])) { UnityEngine.UI.Image.OriginHorizontal[] array = obj as UnityEngine.UI.Image.OriginHorizontal[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.Image.OriginVertical[])) { UnityEngine.UI.Image.OriginVertical[] array = obj as UnityEngine.UI.Image.OriginVertical[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.Image.Origin90[])) { UnityEngine.UI.Image.Origin90[] array = obj as UnityEngine.UI.Image.Origin90[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.Image.Origin180[])) { UnityEngine.UI.Image.Origin180[] array = obj as UnityEngine.UI.Image.Origin180[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.Image.Origin360[])) { UnityEngine.UI.Image.Origin360[] array = obj as UnityEngine.UI.Image.Origin360[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.InputField.ContentType[])) { UnityEngine.UI.InputField.ContentType[] array = obj as UnityEngine.UI.InputField.ContentType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.InputField.InputType[])) { UnityEngine.UI.InputField.InputType[] array = obj as UnityEngine.UI.InputField.InputType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.InputField.CharacterValidation[])) { UnityEngine.UI.InputField.CharacterValidation[] array = obj as UnityEngine.UI.InputField.CharacterValidation[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.InputField.LineType[])) { UnityEngine.UI.InputField.LineType[] array = obj as UnityEngine.UI.InputField.LineType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.ScrollRect.MovementType[])) { UnityEngine.UI.ScrollRect.MovementType[] array = obj as UnityEngine.UI.ScrollRect.MovementType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility[])) { UnityEngine.UI.ScrollRect.ScrollbarVisibility[] array = obj as UnityEngine.UI.ScrollRect.ScrollbarVisibility[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.Slider.Direction[])) { UnityEngine.UI.Slider.Direction[] array = obj as UnityEngine.UI.Slider.Direction[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.Toggle.ToggleTransition[])) { UnityEngine.UI.Toggle.ToggleTransition[] array = obj as UnityEngine.UI.Toggle.ToggleTransition[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.GridLayoutGroup.Corner[])) { UnityEngine.UI.GridLayoutGroup.Corner[] array = obj as UnityEngine.UI.GridLayoutGroup.Corner[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.GridLayoutGroup.Axis[])) { UnityEngine.UI.GridLayoutGroup.Axis[] array = obj as UnityEngine.UI.GridLayoutGroup.Axis[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.UI.GridLayoutGroup.Constraint[])) { UnityEngine.UI.GridLayoutGroup.Constraint[] array = obj as UnityEngine.UI.GridLayoutGroup.Constraint[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Spine.Unity.BoneFollower.AxisOrientation[])) { Spine.Unity.BoneFollower.AxisOrientation[] array = obj as Spine.Unity.BoneFollower.AxisOrientation[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(TMPro.TextAlignmentOptions[])) { TMPro.TextAlignmentOptions[] array = obj as TMPro.TextAlignmentOptions[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(TMPro.TMP_InputField.ContentType[])) { TMPro.TMP_InputField.ContentType[] array = obj as TMPro.TMP_InputField.ContentType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(TMPro.TMP_InputField.InputType[])) { TMPro.TMP_InputField.InputType[] array = obj as TMPro.TMP_InputField.InputType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(TMPro.TMP_InputField.CharacterValidation[])) { TMPro.TMP_InputField.CharacterValidation[] array = obj as TMPro.TMP_InputField.CharacterValidation[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(TMPro.TMP_InputField.LineType[])) { TMPro.TMP_InputField.LineType[] array = obj as TMPro.TMP_InputField.LineType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(DG.Tweening.AutoPlay[])) { DG.Tweening.AutoPlay[] array = obj as DG.Tweening.AutoPlay[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(DG.Tweening.AxisConstraint[])) { DG.Tweening.AxisConstraint[] array = obj as DG.Tweening.AxisConstraint[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(DG.Tweening.Ease[])) { DG.Tweening.Ease[] array = obj as DG.Tweening.Ease[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(DG.Tweening.LogBehaviour[])) { DG.Tweening.LogBehaviour[] array = obj as DG.Tweening.LogBehaviour[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(DG.Tweening.LoopType[])) { DG.Tweening.LoopType[] array = obj as DG.Tweening.LoopType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(DG.Tweening.PathMode[])) { DG.Tweening.PathMode[] array = obj as DG.Tweening.PathMode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(DG.Tweening.PathType[])) { DG.Tweening.PathType[] array = obj as DG.Tweening.PathType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(DG.Tweening.RotateMode[])) { DG.Tweening.RotateMode[] array = obj as DG.Tweening.RotateMode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(DG.Tweening.ScrambleMode[])) { DG.Tweening.ScrambleMode[] array = obj as DG.Tweening.ScrambleMode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(DG.Tweening.TweenType[])) { DG.Tweening.TweenType[] array = obj as DG.Tweening.TweenType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(DG.Tweening.UpdateType[])) { DG.Tweening.UpdateType[] array = obj as DG.Tweening.UpdateType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone[])) { ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone[] array = obj as ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode[])) { ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode[] array = obj as ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType[])) { ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType[] array = obj as ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Http.RequestState[])) { Http.RequestState[] array = obj as Http.RequestState[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Purchasing.ProductType[])) { UnityEngine.Purchasing.ProductType[] array = obj as UnityEngine.Purchasing.ProductType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(BF.BFSlider.FillDirection[])) { BF.BFSlider.FillDirection[] array = obj as BF.BFSlider.FillDirection[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(BF.ScrollRectBaseOld.MovementType[])) { BF.ScrollRectBaseOld.MovementType[] array = obj as BF.ScrollRectBaseOld.MovementType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(BF.ScrollRectBaseOld.ScrollbarVisibility[])) { BF.ScrollRectBaseOld.ScrollbarVisibility[] array = obj as BF.ScrollRectBaseOld.ScrollbarVisibility[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(BF.NetServiceType[])) { BF.NetServiceType[] array = obj as BF.NetServiceType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(BF.NetIncomingMessageType[])) { BF.NetIncomingMessageType[] array = obj as BF.NetIncomingMessageType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(BF.BFGridLayout.Corner[])) { BF.BFGridLayout.Corner[] array = obj as BF.BFGridLayout.Corner[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(BF.BFGridLayout.Constraint[])) { BF.BFGridLayout.Constraint[] array = obj as BF.BFGridLayout.Constraint[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } return false; } } }