#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 class ObjectTranslatorChild: ObjectTranslator { static XLua.CSObjectWrap.XLua_Gen_Initer_Register__ s_gen_reg_dumb_obj = new XLua.CSObjectWrap.XLua_Gen_Initer_Register__(); static XLua.CSObjectWrap.XLua_Gen_Initer_Register__ gen_reg_dumb_obj {get{return s_gen_reg_dumb_obj;}} public ObjectTranslatorChild(LuaEnv luaenv, RealStatePtr L) : base(luaenv, L) { } class IniterAdderUnityEngineVector2 { static IniterAdderUnityEngineVector2() { LuaEnv.AddIniter(Init); } static void Init(LuaEnv luaenv, ObjectTranslator _translator) { ObjectTranslatorChild translator = (ObjectTranslatorChild)_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.PushUnityEngineRenderingBuiltinRenderTextureType, translator.Get, translator.UpdateUnityEngineRenderingBuiltinRenderTextureType); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRenderingCameraEvent, translator.Get, translator.UpdateUnityEngineRenderingCameraEvent); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineSendMessageOptions, translator.Get, translator.UpdateUnityEngineSendMessageOptions); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRuntimePlatform, translator.Get, translator.UpdateUnityEngineRuntimePlatform); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoPluginsCommonUIEventDefine, translator.Get, translator.UpdateThousandtoPluginsCommonUIEventDefine); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCodeGlobalLogicEventDefine, translator.Get, translator.UpdateThousandtoCodeGlobalLogicEventDefine); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCoreAssetImageTypeCode, translator.Get, translator.UpdateThousandtoCoreAssetImageTypeCode); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCoreAssetAudioTypeCode, translator.Get, translator.UpdateThousandtoCoreAssetAudioTypeCode); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCodeLogicMsgBoxResultCode, translator.Get, translator.UpdateThousandtoCodeLogicMsgBoxResultCode); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCodeLogicMsgBoxIsSelect, translator.Get, translator.UpdateThousandtoCodeLogicMsgBoxIsSelect); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineKeyCode, translator.Get, translator.UpdateUnityEngineKeyCode); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCodeLogicFSkinTypeCode, translator.Get, translator.UpdateThousandtoCodeLogicFSkinTypeCode); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCoreAssetModelTypeCode, translator.Get, translator.UpdateThousandtoCoreAssetModelTypeCode); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCodeGlobalAllBattleProp, translator.Get, translator.UpdateThousandtoCodeGlobalAllBattleProp); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCodeGlobalFriendType, translator.Get, translator.UpdateThousandtoCodeGlobalFriendType); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCodeGlobalPKMode, translator.Get, translator.UpdateThousandtoCodeGlobalPKMode); translator.RegisterPushAndGetAndUpdate(translator.PushUITweenerMethod, translator.Get, translator.UpdateUITweenerMethod); translator.RegisterPushAndGetAndUpdate(translator.PushUITweenerStyle, translator.Get, translator.UpdateUITweenerStyle); translator.RegisterPushAndGetAndUpdate(translator.PushUIWidgetPivot, translator.Get, translator.UpdateUIWidgetPivot); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCodeLogicMsgBoxInfoTypeCode, translator.Get, translator.UpdateThousandtoCodeLogicMsgBoxInfoTypeCode); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCodeGlobalMapTypeDef, translator.Get, translator.UpdateThousandtoCodeGlobalMapTypeDef); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCodeLogicSkillSelectFiledType, translator.Get, translator.UpdateThousandtoCodeLogicSkillSelectFiledType); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCodeLogicActionEventCode, translator.Get, translator.UpdateThousandtoCodeLogicActionEventCode); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCodeGlobalItemBigType, translator.Get, translator.UpdateThousandtoCodeGlobalItemBigType); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCodeGlobalContainerType, translator.Get, translator.UpdateThousandtoCodeGlobalContainerType); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCodeGlobalItemTipsLocation, translator.Get, translator.UpdateThousandtoCodeGlobalItemTipsLocation); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoPluginsCommonUIFormRegion, translator.Get, translator.UpdateThousandtoPluginsCommonUIFormRegion); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCodeLogicGameSettingKeyCode, translator.Get, translator.UpdateThousandtoCodeLogicGameSettingKeyCode); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCodeLogicLocalPlayerBTTaskBDTaskTargetType, translator.Get, translator.UpdateThousandtoCodeLogicLocalPlayerBTTaskBDTaskTargetType); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineWrapMode, translator.Get, translator.UpdateUnityEngineWrapMode); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCoreAssetAnimationPartType, translator.Get, translator.UpdateThousandtoCoreAssetAnimationPartType); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineAnimationCullingType, translator.Get, translator.UpdateUnityEngineAnimationCullingType); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineAnimatorCullingMode, translator.Get, translator.UpdateUnityEngineAnimatorCullingMode); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCoreAssetEntityStateID, translator.Get, translator.UpdateThousandtoCoreAssetEntityStateID); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCoreAssetVFXPlayState, translator.Get, translator.UpdateThousandtoCoreAssetVFXPlayState); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoPluginsCommonUIFormType, translator.Get, translator.UpdateThousandtoPluginsCommonUIFormType); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCodeLogicMsgInfoPriority, translator.Get, translator.UpdateThousandtoCodeLogicMsgInfoPriority); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCodeGlobalRoleBaseAttribute, translator.Get, translator.UpdateThousandtoCodeGlobalRoleBaseAttribute); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineCameraMonoOrStereoscopicEye, translator.Get, translator.UpdateUnityEngineCameraMonoOrStereoscopicEye); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineCameraStereoscopicEye, translator.Get, translator.UpdateUnityEngineCameraStereoscopicEye); translator.RegisterPushAndGetAndUpdate(translator.PushUIWidgetAspectRatioSource, translator.Get, translator.UpdateUIWidgetAspectRatioSource); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineCameraGateFitMode, translator.Get, translator.UpdateUnityEngineCameraGateFitMode); translator.RegisterPushAndGetAndUpdate(translator.PushUILabelCrispness, translator.Get, translator.UpdateUILabelCrispness); translator.RegisterPushAndGetAndUpdate(translator.PushUILabelOverflow, translator.Get, translator.UpdateUILabelOverflow); translator.RegisterPushAndGetAndUpdate(translator.PushUILabelEffect, translator.Get, translator.UpdateUILabelEffect); translator.RegisterPushAndGetAndUpdate(translator.PushUIInputOnReturnKey, translator.Get, translator.UpdateUIInputOnReturnKey); translator.RegisterPushAndGetAndUpdate(translator.PushUIInputKeyboardType, translator.Get, translator.UpdateUIInputKeyboardType); translator.RegisterPushAndGetAndUpdate(translator.PushUIInputValidation, translator.Get, translator.UpdateUIInputValidation); translator.RegisterPushAndGetAndUpdate(translator.PushUIInputInputType, translator.Get, translator.UpdateUIInputInputType); translator.RegisterPushAndGetAndUpdate(translator.PushUIPanelRenderQueue, translator.Get, translator.UpdateUIPanelRenderQueue); translator.RegisterPushAndGetAndUpdate(translator.PushUIButtonColorState, translator.Get, translator.UpdateUIButtonColorState); translator.RegisterPushAndGetAndUpdate(translator.PushUIBasicSpriteFlip, translator.Get, translator.UpdateUIBasicSpriteFlip); translator.RegisterPushAndGetAndUpdate(translator.PushUIBasicSpriteAdvancedType, translator.Get, translator.UpdateUIBasicSpriteAdvancedType); translator.RegisterPushAndGetAndUpdate(translator.PushUIBasicSpriteFillDirection, translator.Get, translator.UpdateUIBasicSpriteFillDirection); translator.RegisterPushAndGetAndUpdate(translator.PushUIBasicSpriteType, translator.Get, translator.UpdateUIBasicSpriteType); translator.RegisterPushAndGetAndUpdate(translator.PushUIRectAnchorUpdate, translator.Get, translator.UpdateUIRectAnchorUpdate); translator.RegisterPushAndGetAndUpdate(translator.PushUITableSorting, translator.Get, translator.UpdateUITableSorting); translator.RegisterPushAndGetAndUpdate(translator.PushUITableDirection, translator.Get, translator.UpdateUITableDirection); translator.RegisterPushAndGetAndUpdate(translator.PushUIGridSorting, translator.Get, translator.UpdateUIGridSorting); translator.RegisterPushAndGetAndUpdate(translator.PushUIGridArrangement, translator.Get, translator.UpdateUIGridArrangement); translator.RegisterPushAndGetAndUpdate(translator.PushUIScrollViewShowCondition, translator.Get, translator.UpdateUIScrollViewShowCondition); translator.RegisterPushAndGetAndUpdate(translator.PushUIScrollViewDragEffect, translator.Get, translator.UpdateUIScrollViewDragEffect); translator.RegisterPushAndGetAndUpdate(translator.PushUIScrollViewMovement, translator.Get, translator.UpdateUIScrollViewMovement); translator.RegisterPushAndGetAndUpdate(translator.PushUICameraEventType, translator.Get, translator.UpdateUICameraEventType); translator.RegisterPushAndGetAndUpdate(translator.PushUICameraClickNotification, translator.Get, translator.UpdateUICameraClickNotification); translator.RegisterPushAndGetAndUpdate(translator.PushUICameraControlScheme, translator.Get, translator.UpdateUICameraControlScheme); translator.RegisterPushAndGetAndUpdate(translator.PushUIProgressBarFillDirection, translator.Get, translator.UpdateUIProgressBarFillDirection); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCoreAssetSlot, translator.Get, translator.UpdateThousandtoCoreAssetSlot); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCoreAssetTimelinePlayState, translator.Get, translator.UpdateThousandtoCoreAssetTimelinePlayState); translator.RegisterPushAndGetAndUpdate(translator.PushThousandtoCoreBaseSpawnPoolNameCode, translator.Get, translator.UpdateThousandtoCoreBaseSpawnPoolNameCode); translator.RegisterPushAndGetAndUpdate(translator.PushBestHTTPHTTPMethods, translator.Get, translator.UpdateBestHTTPHTTPMethods); translator.RegisterPushAndGetAndUpdate(translator.PushSystemReflectionBindingFlags, translator.Get, translator.UpdateSystemReflectionBindingFlags); translator.RegisterPushAndGetAndUpdate(translator.PushTutorialTestEnum, translator.Get, translator.UpdateTutorialTestEnum); translator.RegisterPushAndGetAndUpdate(translator.PushTutorialDerivedClassTestEnumInner, translator.Get, translator.UpdateTutorialDerivedClassTestEnumInner); } } 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 (!CopyByValueEX.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 (!CopyByValueEX.UnPack(buff, 0, out val)) { throw new Exception("unpack fail for UnityEngine.Vector2"); } } else if (type ==LuaTypes.LUA_TTABLE) { CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.UnPack(buff, 0, out val)) { throw new Exception("unpack fail for UnityEngine.Vector3"); } } else if (type ==LuaTypes.LUA_TTABLE) { CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.UnPack(buff, 0, out val)) { throw new Exception("unpack fail for UnityEngine.Vector4"); } } else if (type ==LuaTypes.LUA_TTABLE) { CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.UnPack(buff, 0, out val)) { throw new Exception("unpack fail for UnityEngine.Color"); } } else if (type ==LuaTypes.LUA_TTABLE) { CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.UnPack(buff, 0, out val)) { throw new Exception("unpack fail for UnityEngine.Quaternion"); } } else if (type ==LuaTypes.LUA_TTABLE) { CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.UnPack(buff, 0, out val)) { throw new Exception("unpack fail for UnityEngine.Ray"); } } else if (type ==LuaTypes.LUA_TTABLE) { CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.UnPack(buff, 0, out val)) { throw new Exception("unpack fail for UnityEngine.Bounds"); } } else if (type ==LuaTypes.LUA_TTABLE) { CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.UnPack(buff, 0, out val)) { throw new Exception("unpack fail for UnityEngine.Ray2D"); } } else if (type ==LuaTypes.LUA_TTABLE) { CopyByValueEX.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 (!CopyByValueEX.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 UnityEngineRenderingBuiltinRenderTextureType_TypeID = -1; int UnityEngineRenderingBuiltinRenderTextureType_EnumRef = -1; public void PushUnityEngineRenderingBuiltinRenderTextureType(RealStatePtr L, UnityEngine.Rendering.BuiltinRenderTextureType val) { if (UnityEngineRenderingBuiltinRenderTextureType_TypeID == -1) { bool is_first; UnityEngineRenderingBuiltinRenderTextureType_TypeID = getTypeId(L, typeof(UnityEngine.Rendering.BuiltinRenderTextureType), out is_first); if (UnityEngineRenderingBuiltinRenderTextureType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.Rendering.BuiltinRenderTextureType)); UnityEngineRenderingBuiltinRenderTextureType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRenderingBuiltinRenderTextureType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRenderingBuiltinRenderTextureType_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.Rendering.BuiltinRenderTextureType ,value="+val); } LuaAPI.lua_getref(L, UnityEngineRenderingBuiltinRenderTextureType_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.BuiltinRenderTextureType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderingBuiltinRenderTextureType_TypeID) { throw new Exception("invalid userdata for UnityEngine.Rendering.BuiltinRenderTextureType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.Rendering.BuiltinRenderTextureType"); } val = (UnityEngine.Rendering.BuiltinRenderTextureType)e; } else { val = (UnityEngine.Rendering.BuiltinRenderTextureType)objectCasters.GetCaster(typeof(UnityEngine.Rendering.BuiltinRenderTextureType))(L, index, null); } } public void UpdateUnityEngineRenderingBuiltinRenderTextureType(RealStatePtr L, int index, UnityEngine.Rendering.BuiltinRenderTextureType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderingBuiltinRenderTextureType_TypeID) { throw new Exception("invalid userdata for UnityEngine.Rendering.BuiltinRenderTextureType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.Rendering.BuiltinRenderTextureType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineRenderingCameraEvent_TypeID = -1; int UnityEngineRenderingCameraEvent_EnumRef = -1; public void PushUnityEngineRenderingCameraEvent(RealStatePtr L, UnityEngine.Rendering.CameraEvent val) { if (UnityEngineRenderingCameraEvent_TypeID == -1) { bool is_first; UnityEngineRenderingCameraEvent_TypeID = getTypeId(L, typeof(UnityEngine.Rendering.CameraEvent), out is_first); if (UnityEngineRenderingCameraEvent_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.Rendering.CameraEvent)); UnityEngineRenderingCameraEvent_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRenderingCameraEvent_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRenderingCameraEvent_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.Rendering.CameraEvent ,value="+val); } LuaAPI.lua_getref(L, UnityEngineRenderingCameraEvent_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.CameraEvent val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderingCameraEvent_TypeID) { throw new Exception("invalid userdata for UnityEngine.Rendering.CameraEvent"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.Rendering.CameraEvent"); } val = (UnityEngine.Rendering.CameraEvent)e; } else { val = (UnityEngine.Rendering.CameraEvent)objectCasters.GetCaster(typeof(UnityEngine.Rendering.CameraEvent))(L, index, null); } } public void UpdateUnityEngineRenderingCameraEvent(RealStatePtr L, int index, UnityEngine.Rendering.CameraEvent val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderingCameraEvent_TypeID) { throw new Exception("invalid userdata for UnityEngine.Rendering.CameraEvent"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.Rendering.CameraEvent ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineSendMessageOptions_TypeID = -1; int UnityEngineSendMessageOptions_EnumRef = -1; public void PushUnityEngineSendMessageOptions(RealStatePtr L, UnityEngine.SendMessageOptions val) { if (UnityEngineSendMessageOptions_TypeID == -1) { bool is_first; UnityEngineSendMessageOptions_TypeID = getTypeId(L, typeof(UnityEngine.SendMessageOptions), out is_first); if (UnityEngineSendMessageOptions_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.SendMessageOptions)); UnityEngineSendMessageOptions_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineSendMessageOptions_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineSendMessageOptions_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.SendMessageOptions ,value="+val); } LuaAPI.lua_getref(L, UnityEngineSendMessageOptions_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.SendMessageOptions val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineSendMessageOptions_TypeID) { throw new Exception("invalid userdata for UnityEngine.SendMessageOptions"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.SendMessageOptions"); } val = (UnityEngine.SendMessageOptions)e; } else { val = (UnityEngine.SendMessageOptions)objectCasters.GetCaster(typeof(UnityEngine.SendMessageOptions))(L, index, null); } } public void UpdateUnityEngineSendMessageOptions(RealStatePtr L, int index, UnityEngine.SendMessageOptions val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineSendMessageOptions_TypeID) { throw new Exception("invalid userdata for UnityEngine.SendMessageOptions"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.SendMessageOptions ,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 (!CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.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 ThousandtoPluginsCommonUIEventDefine_TypeID = -1; int ThousandtoPluginsCommonUIEventDefine_EnumRef = -1; public void PushThousandtoPluginsCommonUIEventDefine(RealStatePtr L, Thousandto.Plugins.Common.UIEventDefine val) { if (ThousandtoPluginsCommonUIEventDefine_TypeID == -1) { bool is_first; ThousandtoPluginsCommonUIEventDefine_TypeID = getTypeId(L, typeof(Thousandto.Plugins.Common.UIEventDefine), out is_first); if (ThousandtoPluginsCommonUIEventDefine_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Plugins.Common.UIEventDefine)); ThousandtoPluginsCommonUIEventDefine_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoPluginsCommonUIEventDefine_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoPluginsCommonUIEventDefine_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Plugins.Common.UIEventDefine ,value="+val); } LuaAPI.lua_getref(L, ThousandtoPluginsCommonUIEventDefine_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 Thousandto.Plugins.Common.UIEventDefine val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoPluginsCommonUIEventDefine_TypeID) { throw new Exception("invalid userdata for Thousandto.Plugins.Common.UIEventDefine"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Plugins.Common.UIEventDefine"); } val = (Thousandto.Plugins.Common.UIEventDefine)e; } else { val = (Thousandto.Plugins.Common.UIEventDefine)objectCasters.GetCaster(typeof(Thousandto.Plugins.Common.UIEventDefine))(L, index, null); } } public void UpdateThousandtoPluginsCommonUIEventDefine(RealStatePtr L, int index, Thousandto.Plugins.Common.UIEventDefine val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoPluginsCommonUIEventDefine_TypeID) { throw new Exception("invalid userdata for Thousandto.Plugins.Common.UIEventDefine"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Plugins.Common.UIEventDefine ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCodeGlobalLogicEventDefine_TypeID = -1; int ThousandtoCodeGlobalLogicEventDefine_EnumRef = -1; public void PushThousandtoCodeGlobalLogicEventDefine(RealStatePtr L, Thousandto.Code.Global.LogicEventDefine val) { if (ThousandtoCodeGlobalLogicEventDefine_TypeID == -1) { bool is_first; ThousandtoCodeGlobalLogicEventDefine_TypeID = getTypeId(L, typeof(Thousandto.Code.Global.LogicEventDefine), out is_first); if (ThousandtoCodeGlobalLogicEventDefine_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Code.Global.LogicEventDefine)); ThousandtoCodeGlobalLogicEventDefine_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCodeGlobalLogicEventDefine_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCodeGlobalLogicEventDefine_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Code.Global.LogicEventDefine ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCodeGlobalLogicEventDefine_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 Thousandto.Code.Global.LogicEventDefine val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeGlobalLogicEventDefine_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Global.LogicEventDefine"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Code.Global.LogicEventDefine"); } val = (Thousandto.Code.Global.LogicEventDefine)e; } else { val = (Thousandto.Code.Global.LogicEventDefine)objectCasters.GetCaster(typeof(Thousandto.Code.Global.LogicEventDefine))(L, index, null); } } public void UpdateThousandtoCodeGlobalLogicEventDefine(RealStatePtr L, int index, Thousandto.Code.Global.LogicEventDefine val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeGlobalLogicEventDefine_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Global.LogicEventDefine"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Code.Global.LogicEventDefine ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCoreAssetImageTypeCode_TypeID = -1; int ThousandtoCoreAssetImageTypeCode_EnumRef = -1; public void PushThousandtoCoreAssetImageTypeCode(RealStatePtr L, Thousandto.Core.Asset.ImageTypeCode val) { if (ThousandtoCoreAssetImageTypeCode_TypeID == -1) { bool is_first; ThousandtoCoreAssetImageTypeCode_TypeID = getTypeId(L, typeof(Thousandto.Core.Asset.ImageTypeCode), out is_first); if (ThousandtoCoreAssetImageTypeCode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Core.Asset.ImageTypeCode)); ThousandtoCoreAssetImageTypeCode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCoreAssetImageTypeCode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCoreAssetImageTypeCode_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Core.Asset.ImageTypeCode ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCoreAssetImageTypeCode_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 Thousandto.Core.Asset.ImageTypeCode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCoreAssetImageTypeCode_TypeID) { throw new Exception("invalid userdata for Thousandto.Core.Asset.ImageTypeCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Core.Asset.ImageTypeCode"); } val = (Thousandto.Core.Asset.ImageTypeCode)e; } else { val = (Thousandto.Core.Asset.ImageTypeCode)objectCasters.GetCaster(typeof(Thousandto.Core.Asset.ImageTypeCode))(L, index, null); } } public void UpdateThousandtoCoreAssetImageTypeCode(RealStatePtr L, int index, Thousandto.Core.Asset.ImageTypeCode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCoreAssetImageTypeCode_TypeID) { throw new Exception("invalid userdata for Thousandto.Core.Asset.ImageTypeCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Core.Asset.ImageTypeCode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCoreAssetAudioTypeCode_TypeID = -1; int ThousandtoCoreAssetAudioTypeCode_EnumRef = -1; public void PushThousandtoCoreAssetAudioTypeCode(RealStatePtr L, Thousandto.Core.Asset.AudioTypeCode val) { if (ThousandtoCoreAssetAudioTypeCode_TypeID == -1) { bool is_first; ThousandtoCoreAssetAudioTypeCode_TypeID = getTypeId(L, typeof(Thousandto.Core.Asset.AudioTypeCode), out is_first); if (ThousandtoCoreAssetAudioTypeCode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Core.Asset.AudioTypeCode)); ThousandtoCoreAssetAudioTypeCode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCoreAssetAudioTypeCode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCoreAssetAudioTypeCode_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Core.Asset.AudioTypeCode ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCoreAssetAudioTypeCode_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 Thousandto.Core.Asset.AudioTypeCode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCoreAssetAudioTypeCode_TypeID) { throw new Exception("invalid userdata for Thousandto.Core.Asset.AudioTypeCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Core.Asset.AudioTypeCode"); } val = (Thousandto.Core.Asset.AudioTypeCode)e; } else { val = (Thousandto.Core.Asset.AudioTypeCode)objectCasters.GetCaster(typeof(Thousandto.Core.Asset.AudioTypeCode))(L, index, null); } } public void UpdateThousandtoCoreAssetAudioTypeCode(RealStatePtr L, int index, Thousandto.Core.Asset.AudioTypeCode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCoreAssetAudioTypeCode_TypeID) { throw new Exception("invalid userdata for Thousandto.Core.Asset.AudioTypeCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Core.Asset.AudioTypeCode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCodeLogicMsgBoxResultCode_TypeID = -1; int ThousandtoCodeLogicMsgBoxResultCode_EnumRef = -1; public void PushThousandtoCodeLogicMsgBoxResultCode(RealStatePtr L, Thousandto.Code.Logic.MsgBoxResultCode val) { if (ThousandtoCodeLogicMsgBoxResultCode_TypeID == -1) { bool is_first; ThousandtoCodeLogicMsgBoxResultCode_TypeID = getTypeId(L, typeof(Thousandto.Code.Logic.MsgBoxResultCode), out is_first); if (ThousandtoCodeLogicMsgBoxResultCode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Code.Logic.MsgBoxResultCode)); ThousandtoCodeLogicMsgBoxResultCode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCodeLogicMsgBoxResultCode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCodeLogicMsgBoxResultCode_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Code.Logic.MsgBoxResultCode ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCodeLogicMsgBoxResultCode_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 Thousandto.Code.Logic.MsgBoxResultCode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeLogicMsgBoxResultCode_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Logic.MsgBoxResultCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Code.Logic.MsgBoxResultCode"); } val = (Thousandto.Code.Logic.MsgBoxResultCode)e; } else { val = (Thousandto.Code.Logic.MsgBoxResultCode)objectCasters.GetCaster(typeof(Thousandto.Code.Logic.MsgBoxResultCode))(L, index, null); } } public void UpdateThousandtoCodeLogicMsgBoxResultCode(RealStatePtr L, int index, Thousandto.Code.Logic.MsgBoxResultCode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeLogicMsgBoxResultCode_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Logic.MsgBoxResultCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Code.Logic.MsgBoxResultCode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCodeLogicMsgBoxIsSelect_TypeID = -1; int ThousandtoCodeLogicMsgBoxIsSelect_EnumRef = -1; public void PushThousandtoCodeLogicMsgBoxIsSelect(RealStatePtr L, Thousandto.Code.Logic.MsgBoxIsSelect val) { if (ThousandtoCodeLogicMsgBoxIsSelect_TypeID == -1) { bool is_first; ThousandtoCodeLogicMsgBoxIsSelect_TypeID = getTypeId(L, typeof(Thousandto.Code.Logic.MsgBoxIsSelect), out is_first); if (ThousandtoCodeLogicMsgBoxIsSelect_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Code.Logic.MsgBoxIsSelect)); ThousandtoCodeLogicMsgBoxIsSelect_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCodeLogicMsgBoxIsSelect_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCodeLogicMsgBoxIsSelect_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Code.Logic.MsgBoxIsSelect ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCodeLogicMsgBoxIsSelect_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 Thousandto.Code.Logic.MsgBoxIsSelect val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeLogicMsgBoxIsSelect_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Logic.MsgBoxIsSelect"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Code.Logic.MsgBoxIsSelect"); } val = (Thousandto.Code.Logic.MsgBoxIsSelect)e; } else { val = (Thousandto.Code.Logic.MsgBoxIsSelect)objectCasters.GetCaster(typeof(Thousandto.Code.Logic.MsgBoxIsSelect))(L, index, null); } } public void UpdateThousandtoCodeLogicMsgBoxIsSelect(RealStatePtr L, int index, Thousandto.Code.Logic.MsgBoxIsSelect val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeLogicMsgBoxIsSelect_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Logic.MsgBoxIsSelect"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Code.Logic.MsgBoxIsSelect ,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 (!CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.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 ThousandtoCodeLogicFSkinTypeCode_TypeID = -1; int ThousandtoCodeLogicFSkinTypeCode_EnumRef = -1; public void PushThousandtoCodeLogicFSkinTypeCode(RealStatePtr L, Thousandto.Code.Logic.FSkinTypeCode val) { if (ThousandtoCodeLogicFSkinTypeCode_TypeID == -1) { bool is_first; ThousandtoCodeLogicFSkinTypeCode_TypeID = getTypeId(L, typeof(Thousandto.Code.Logic.FSkinTypeCode), out is_first); if (ThousandtoCodeLogicFSkinTypeCode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Code.Logic.FSkinTypeCode)); ThousandtoCodeLogicFSkinTypeCode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCodeLogicFSkinTypeCode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCodeLogicFSkinTypeCode_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Code.Logic.FSkinTypeCode ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCodeLogicFSkinTypeCode_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 Thousandto.Code.Logic.FSkinTypeCode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeLogicFSkinTypeCode_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Logic.FSkinTypeCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Code.Logic.FSkinTypeCode"); } val = (Thousandto.Code.Logic.FSkinTypeCode)e; } else { val = (Thousandto.Code.Logic.FSkinTypeCode)objectCasters.GetCaster(typeof(Thousandto.Code.Logic.FSkinTypeCode))(L, index, null); } } public void UpdateThousandtoCodeLogicFSkinTypeCode(RealStatePtr L, int index, Thousandto.Code.Logic.FSkinTypeCode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeLogicFSkinTypeCode_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Logic.FSkinTypeCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Code.Logic.FSkinTypeCode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCoreAssetModelTypeCode_TypeID = -1; int ThousandtoCoreAssetModelTypeCode_EnumRef = -1; public void PushThousandtoCoreAssetModelTypeCode(RealStatePtr L, Thousandto.Core.Asset.ModelTypeCode val) { if (ThousandtoCoreAssetModelTypeCode_TypeID == -1) { bool is_first; ThousandtoCoreAssetModelTypeCode_TypeID = getTypeId(L, typeof(Thousandto.Core.Asset.ModelTypeCode), out is_first); if (ThousandtoCoreAssetModelTypeCode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Core.Asset.ModelTypeCode)); ThousandtoCoreAssetModelTypeCode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCoreAssetModelTypeCode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCoreAssetModelTypeCode_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Core.Asset.ModelTypeCode ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCoreAssetModelTypeCode_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 Thousandto.Core.Asset.ModelTypeCode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCoreAssetModelTypeCode_TypeID) { throw new Exception("invalid userdata for Thousandto.Core.Asset.ModelTypeCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Core.Asset.ModelTypeCode"); } val = (Thousandto.Core.Asset.ModelTypeCode)e; } else { val = (Thousandto.Core.Asset.ModelTypeCode)objectCasters.GetCaster(typeof(Thousandto.Core.Asset.ModelTypeCode))(L, index, null); } } public void UpdateThousandtoCoreAssetModelTypeCode(RealStatePtr L, int index, Thousandto.Core.Asset.ModelTypeCode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCoreAssetModelTypeCode_TypeID) { throw new Exception("invalid userdata for Thousandto.Core.Asset.ModelTypeCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Core.Asset.ModelTypeCode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCodeGlobalAllBattleProp_TypeID = -1; int ThousandtoCodeGlobalAllBattleProp_EnumRef = -1; public void PushThousandtoCodeGlobalAllBattleProp(RealStatePtr L, Thousandto.Code.Global.AllBattleProp val) { if (ThousandtoCodeGlobalAllBattleProp_TypeID == -1) { bool is_first; ThousandtoCodeGlobalAllBattleProp_TypeID = getTypeId(L, typeof(Thousandto.Code.Global.AllBattleProp), out is_first); if (ThousandtoCodeGlobalAllBattleProp_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Code.Global.AllBattleProp)); ThousandtoCodeGlobalAllBattleProp_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCodeGlobalAllBattleProp_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCodeGlobalAllBattleProp_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Code.Global.AllBattleProp ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCodeGlobalAllBattleProp_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 Thousandto.Code.Global.AllBattleProp val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeGlobalAllBattleProp_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Global.AllBattleProp"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Code.Global.AllBattleProp"); } val = (Thousandto.Code.Global.AllBattleProp)e; } else { val = (Thousandto.Code.Global.AllBattleProp)objectCasters.GetCaster(typeof(Thousandto.Code.Global.AllBattleProp))(L, index, null); } } public void UpdateThousandtoCodeGlobalAllBattleProp(RealStatePtr L, int index, Thousandto.Code.Global.AllBattleProp val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeGlobalAllBattleProp_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Global.AllBattleProp"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Code.Global.AllBattleProp ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCodeGlobalFriendType_TypeID = -1; int ThousandtoCodeGlobalFriendType_EnumRef = -1; public void PushThousandtoCodeGlobalFriendType(RealStatePtr L, Thousandto.Code.Global.FriendType val) { if (ThousandtoCodeGlobalFriendType_TypeID == -1) { bool is_first; ThousandtoCodeGlobalFriendType_TypeID = getTypeId(L, typeof(Thousandto.Code.Global.FriendType), out is_first); if (ThousandtoCodeGlobalFriendType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Code.Global.FriendType)); ThousandtoCodeGlobalFriendType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCodeGlobalFriendType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCodeGlobalFriendType_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Code.Global.FriendType ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCodeGlobalFriendType_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 Thousandto.Code.Global.FriendType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeGlobalFriendType_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Global.FriendType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Code.Global.FriendType"); } val = (Thousandto.Code.Global.FriendType)e; } else { val = (Thousandto.Code.Global.FriendType)objectCasters.GetCaster(typeof(Thousandto.Code.Global.FriendType))(L, index, null); } } public void UpdateThousandtoCodeGlobalFriendType(RealStatePtr L, int index, Thousandto.Code.Global.FriendType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeGlobalFriendType_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Global.FriendType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Code.Global.FriendType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCodeGlobalPKMode_TypeID = -1; int ThousandtoCodeGlobalPKMode_EnumRef = -1; public void PushThousandtoCodeGlobalPKMode(RealStatePtr L, Thousandto.Code.Global.PKMode val) { if (ThousandtoCodeGlobalPKMode_TypeID == -1) { bool is_first; ThousandtoCodeGlobalPKMode_TypeID = getTypeId(L, typeof(Thousandto.Code.Global.PKMode), out is_first); if (ThousandtoCodeGlobalPKMode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Code.Global.PKMode)); ThousandtoCodeGlobalPKMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCodeGlobalPKMode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCodeGlobalPKMode_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Code.Global.PKMode ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCodeGlobalPKMode_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 Thousandto.Code.Global.PKMode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeGlobalPKMode_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Global.PKMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Code.Global.PKMode"); } val = (Thousandto.Code.Global.PKMode)e; } else { val = (Thousandto.Code.Global.PKMode)objectCasters.GetCaster(typeof(Thousandto.Code.Global.PKMode))(L, index, null); } } public void UpdateThousandtoCodeGlobalPKMode(RealStatePtr L, int index, Thousandto.Code.Global.PKMode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeGlobalPKMode_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Global.PKMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Code.Global.PKMode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UITweenerMethod_TypeID = -1; int UITweenerMethod_EnumRef = -1; public void PushUITweenerMethod(RealStatePtr L, UITweener.Method val) { if (UITweenerMethod_TypeID == -1) { bool is_first; UITweenerMethod_TypeID = getTypeId(L, typeof(UITweener.Method), out is_first); if (UITweenerMethod_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UITweener.Method)); UITweenerMethod_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UITweenerMethod_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UITweenerMethod_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UITweener.Method ,value="+val); } LuaAPI.lua_getref(L, UITweenerMethod_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 UITweener.Method val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UITweenerMethod_TypeID) { throw new Exception("invalid userdata for UITweener.Method"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UITweener.Method"); } val = (UITweener.Method)e; } else { val = (UITweener.Method)objectCasters.GetCaster(typeof(UITweener.Method))(L, index, null); } } public void UpdateUITweenerMethod(RealStatePtr L, int index, UITweener.Method val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UITweenerMethod_TypeID) { throw new Exception("invalid userdata for UITweener.Method"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UITweener.Method ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UITweenerStyle_TypeID = -1; int UITweenerStyle_EnumRef = -1; public void PushUITweenerStyle(RealStatePtr L, UITweener.Style val) { if (UITweenerStyle_TypeID == -1) { bool is_first; UITweenerStyle_TypeID = getTypeId(L, typeof(UITweener.Style), out is_first); if (UITweenerStyle_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UITweener.Style)); UITweenerStyle_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UITweenerStyle_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UITweenerStyle_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UITweener.Style ,value="+val); } LuaAPI.lua_getref(L, UITweenerStyle_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 UITweener.Style val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UITweenerStyle_TypeID) { throw new Exception("invalid userdata for UITweener.Style"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UITweener.Style"); } val = (UITweener.Style)e; } else { val = (UITweener.Style)objectCasters.GetCaster(typeof(UITweener.Style))(L, index, null); } } public void UpdateUITweenerStyle(RealStatePtr L, int index, UITweener.Style val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UITweenerStyle_TypeID) { throw new Exception("invalid userdata for UITweener.Style"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UITweener.Style ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIWidgetPivot_TypeID = -1; int UIWidgetPivot_EnumRef = -1; public void PushUIWidgetPivot(RealStatePtr L, UIWidget.Pivot val) { if (UIWidgetPivot_TypeID == -1) { bool is_first; UIWidgetPivot_TypeID = getTypeId(L, typeof(UIWidget.Pivot), out is_first); if (UIWidgetPivot_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIWidget.Pivot)); UIWidgetPivot_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIWidgetPivot_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIWidgetPivot_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIWidget.Pivot ,value="+val); } LuaAPI.lua_getref(L, UIWidgetPivot_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 UIWidget.Pivot val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIWidgetPivot_TypeID) { throw new Exception("invalid userdata for UIWidget.Pivot"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIWidget.Pivot"); } val = (UIWidget.Pivot)e; } else { val = (UIWidget.Pivot)objectCasters.GetCaster(typeof(UIWidget.Pivot))(L, index, null); } } public void UpdateUIWidgetPivot(RealStatePtr L, int index, UIWidget.Pivot val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIWidgetPivot_TypeID) { throw new Exception("invalid userdata for UIWidget.Pivot"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIWidget.Pivot ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCodeLogicMsgBoxInfoTypeCode_TypeID = -1; int ThousandtoCodeLogicMsgBoxInfoTypeCode_EnumRef = -1; public void PushThousandtoCodeLogicMsgBoxInfoTypeCode(RealStatePtr L, Thousandto.Code.Logic.MsgBoxInfoTypeCode val) { if (ThousandtoCodeLogicMsgBoxInfoTypeCode_TypeID == -1) { bool is_first; ThousandtoCodeLogicMsgBoxInfoTypeCode_TypeID = getTypeId(L, typeof(Thousandto.Code.Logic.MsgBoxInfoTypeCode), out is_first); if (ThousandtoCodeLogicMsgBoxInfoTypeCode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Code.Logic.MsgBoxInfoTypeCode)); ThousandtoCodeLogicMsgBoxInfoTypeCode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCodeLogicMsgBoxInfoTypeCode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCodeLogicMsgBoxInfoTypeCode_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Code.Logic.MsgBoxInfoTypeCode ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCodeLogicMsgBoxInfoTypeCode_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 Thousandto.Code.Logic.MsgBoxInfoTypeCode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeLogicMsgBoxInfoTypeCode_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Logic.MsgBoxInfoTypeCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Code.Logic.MsgBoxInfoTypeCode"); } val = (Thousandto.Code.Logic.MsgBoxInfoTypeCode)e; } else { val = (Thousandto.Code.Logic.MsgBoxInfoTypeCode)objectCasters.GetCaster(typeof(Thousandto.Code.Logic.MsgBoxInfoTypeCode))(L, index, null); } } public void UpdateThousandtoCodeLogicMsgBoxInfoTypeCode(RealStatePtr L, int index, Thousandto.Code.Logic.MsgBoxInfoTypeCode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeLogicMsgBoxInfoTypeCode_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Logic.MsgBoxInfoTypeCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Code.Logic.MsgBoxInfoTypeCode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCodeGlobalMapTypeDef_TypeID = -1; int ThousandtoCodeGlobalMapTypeDef_EnumRef = -1; public void PushThousandtoCodeGlobalMapTypeDef(RealStatePtr L, Thousandto.Code.Global.MapTypeDef val) { if (ThousandtoCodeGlobalMapTypeDef_TypeID == -1) { bool is_first; ThousandtoCodeGlobalMapTypeDef_TypeID = getTypeId(L, typeof(Thousandto.Code.Global.MapTypeDef), out is_first); if (ThousandtoCodeGlobalMapTypeDef_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Code.Global.MapTypeDef)); ThousandtoCodeGlobalMapTypeDef_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCodeGlobalMapTypeDef_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCodeGlobalMapTypeDef_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Code.Global.MapTypeDef ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCodeGlobalMapTypeDef_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 Thousandto.Code.Global.MapTypeDef val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeGlobalMapTypeDef_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Global.MapTypeDef"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Code.Global.MapTypeDef"); } val = (Thousandto.Code.Global.MapTypeDef)e; } else { val = (Thousandto.Code.Global.MapTypeDef)objectCasters.GetCaster(typeof(Thousandto.Code.Global.MapTypeDef))(L, index, null); } } public void UpdateThousandtoCodeGlobalMapTypeDef(RealStatePtr L, int index, Thousandto.Code.Global.MapTypeDef val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeGlobalMapTypeDef_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Global.MapTypeDef"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Code.Global.MapTypeDef ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCodeLogicSkillSelectFiledType_TypeID = -1; int ThousandtoCodeLogicSkillSelectFiledType_EnumRef = -1; public void PushThousandtoCodeLogicSkillSelectFiledType(RealStatePtr L, Thousandto.Code.Logic.SkillSelectFiledType val) { if (ThousandtoCodeLogicSkillSelectFiledType_TypeID == -1) { bool is_first; ThousandtoCodeLogicSkillSelectFiledType_TypeID = getTypeId(L, typeof(Thousandto.Code.Logic.SkillSelectFiledType), out is_first); if (ThousandtoCodeLogicSkillSelectFiledType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Code.Logic.SkillSelectFiledType)); ThousandtoCodeLogicSkillSelectFiledType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCodeLogicSkillSelectFiledType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCodeLogicSkillSelectFiledType_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Code.Logic.SkillSelectFiledType ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCodeLogicSkillSelectFiledType_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 Thousandto.Code.Logic.SkillSelectFiledType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeLogicSkillSelectFiledType_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Logic.SkillSelectFiledType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Code.Logic.SkillSelectFiledType"); } val = (Thousandto.Code.Logic.SkillSelectFiledType)e; } else { val = (Thousandto.Code.Logic.SkillSelectFiledType)objectCasters.GetCaster(typeof(Thousandto.Code.Logic.SkillSelectFiledType))(L, index, null); } } public void UpdateThousandtoCodeLogicSkillSelectFiledType(RealStatePtr L, int index, Thousandto.Code.Logic.SkillSelectFiledType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeLogicSkillSelectFiledType_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Logic.SkillSelectFiledType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Code.Logic.SkillSelectFiledType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCodeLogicActionEventCode_TypeID = -1; int ThousandtoCodeLogicActionEventCode_EnumRef = -1; public void PushThousandtoCodeLogicActionEventCode(RealStatePtr L, Thousandto.Code.Logic.ActionEventCode val) { if (ThousandtoCodeLogicActionEventCode_TypeID == -1) { bool is_first; ThousandtoCodeLogicActionEventCode_TypeID = getTypeId(L, typeof(Thousandto.Code.Logic.ActionEventCode), out is_first); if (ThousandtoCodeLogicActionEventCode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Code.Logic.ActionEventCode)); ThousandtoCodeLogicActionEventCode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCodeLogicActionEventCode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCodeLogicActionEventCode_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Code.Logic.ActionEventCode ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCodeLogicActionEventCode_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 Thousandto.Code.Logic.ActionEventCode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeLogicActionEventCode_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Logic.ActionEventCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Code.Logic.ActionEventCode"); } val = (Thousandto.Code.Logic.ActionEventCode)e; } else { val = (Thousandto.Code.Logic.ActionEventCode)objectCasters.GetCaster(typeof(Thousandto.Code.Logic.ActionEventCode))(L, index, null); } } public void UpdateThousandtoCodeLogicActionEventCode(RealStatePtr L, int index, Thousandto.Code.Logic.ActionEventCode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeLogicActionEventCode_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Logic.ActionEventCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Code.Logic.ActionEventCode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCodeGlobalItemBigType_TypeID = -1; int ThousandtoCodeGlobalItemBigType_EnumRef = -1; public void PushThousandtoCodeGlobalItemBigType(RealStatePtr L, Thousandto.Code.Global.ItemBigType val) { if (ThousandtoCodeGlobalItemBigType_TypeID == -1) { bool is_first; ThousandtoCodeGlobalItemBigType_TypeID = getTypeId(L, typeof(Thousandto.Code.Global.ItemBigType), out is_first); if (ThousandtoCodeGlobalItemBigType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Code.Global.ItemBigType)); ThousandtoCodeGlobalItemBigType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCodeGlobalItemBigType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCodeGlobalItemBigType_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Code.Global.ItemBigType ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCodeGlobalItemBigType_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 Thousandto.Code.Global.ItemBigType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeGlobalItemBigType_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Global.ItemBigType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Code.Global.ItemBigType"); } val = (Thousandto.Code.Global.ItemBigType)e; } else { val = (Thousandto.Code.Global.ItemBigType)objectCasters.GetCaster(typeof(Thousandto.Code.Global.ItemBigType))(L, index, null); } } public void UpdateThousandtoCodeGlobalItemBigType(RealStatePtr L, int index, Thousandto.Code.Global.ItemBigType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeGlobalItemBigType_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Global.ItemBigType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Code.Global.ItemBigType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCodeGlobalContainerType_TypeID = -1; int ThousandtoCodeGlobalContainerType_EnumRef = -1; public void PushThousandtoCodeGlobalContainerType(RealStatePtr L, Thousandto.Code.Global.ContainerType val) { if (ThousandtoCodeGlobalContainerType_TypeID == -1) { bool is_first; ThousandtoCodeGlobalContainerType_TypeID = getTypeId(L, typeof(Thousandto.Code.Global.ContainerType), out is_first); if (ThousandtoCodeGlobalContainerType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Code.Global.ContainerType)); ThousandtoCodeGlobalContainerType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCodeGlobalContainerType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCodeGlobalContainerType_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Code.Global.ContainerType ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCodeGlobalContainerType_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 Thousandto.Code.Global.ContainerType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeGlobalContainerType_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Global.ContainerType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Code.Global.ContainerType"); } val = (Thousandto.Code.Global.ContainerType)e; } else { val = (Thousandto.Code.Global.ContainerType)objectCasters.GetCaster(typeof(Thousandto.Code.Global.ContainerType))(L, index, null); } } public void UpdateThousandtoCodeGlobalContainerType(RealStatePtr L, int index, Thousandto.Code.Global.ContainerType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeGlobalContainerType_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Global.ContainerType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Code.Global.ContainerType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCodeGlobalItemTipsLocation_TypeID = -1; int ThousandtoCodeGlobalItemTipsLocation_EnumRef = -1; public void PushThousandtoCodeGlobalItemTipsLocation(RealStatePtr L, Thousandto.Code.Global.ItemTipsLocation val) { if (ThousandtoCodeGlobalItemTipsLocation_TypeID == -1) { bool is_first; ThousandtoCodeGlobalItemTipsLocation_TypeID = getTypeId(L, typeof(Thousandto.Code.Global.ItemTipsLocation), out is_first); if (ThousandtoCodeGlobalItemTipsLocation_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Code.Global.ItemTipsLocation)); ThousandtoCodeGlobalItemTipsLocation_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCodeGlobalItemTipsLocation_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCodeGlobalItemTipsLocation_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Code.Global.ItemTipsLocation ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCodeGlobalItemTipsLocation_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 Thousandto.Code.Global.ItemTipsLocation val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeGlobalItemTipsLocation_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Global.ItemTipsLocation"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Code.Global.ItemTipsLocation"); } val = (Thousandto.Code.Global.ItemTipsLocation)e; } else { val = (Thousandto.Code.Global.ItemTipsLocation)objectCasters.GetCaster(typeof(Thousandto.Code.Global.ItemTipsLocation))(L, index, null); } } public void UpdateThousandtoCodeGlobalItemTipsLocation(RealStatePtr L, int index, Thousandto.Code.Global.ItemTipsLocation val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeGlobalItemTipsLocation_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Global.ItemTipsLocation"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Code.Global.ItemTipsLocation ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoPluginsCommonUIFormRegion_TypeID = -1; int ThousandtoPluginsCommonUIFormRegion_EnumRef = -1; public void PushThousandtoPluginsCommonUIFormRegion(RealStatePtr L, Thousandto.Plugins.Common.UIFormRegion val) { if (ThousandtoPluginsCommonUIFormRegion_TypeID == -1) { bool is_first; ThousandtoPluginsCommonUIFormRegion_TypeID = getTypeId(L, typeof(Thousandto.Plugins.Common.UIFormRegion), out is_first); if (ThousandtoPluginsCommonUIFormRegion_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Plugins.Common.UIFormRegion)); ThousandtoPluginsCommonUIFormRegion_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoPluginsCommonUIFormRegion_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoPluginsCommonUIFormRegion_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Plugins.Common.UIFormRegion ,value="+val); } LuaAPI.lua_getref(L, ThousandtoPluginsCommonUIFormRegion_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 Thousandto.Plugins.Common.UIFormRegion val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoPluginsCommonUIFormRegion_TypeID) { throw new Exception("invalid userdata for Thousandto.Plugins.Common.UIFormRegion"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Plugins.Common.UIFormRegion"); } val = (Thousandto.Plugins.Common.UIFormRegion)e; } else { val = (Thousandto.Plugins.Common.UIFormRegion)objectCasters.GetCaster(typeof(Thousandto.Plugins.Common.UIFormRegion))(L, index, null); } } public void UpdateThousandtoPluginsCommonUIFormRegion(RealStatePtr L, int index, Thousandto.Plugins.Common.UIFormRegion val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoPluginsCommonUIFormRegion_TypeID) { throw new Exception("invalid userdata for Thousandto.Plugins.Common.UIFormRegion"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Plugins.Common.UIFormRegion ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCodeLogicGameSettingKeyCode_TypeID = -1; int ThousandtoCodeLogicGameSettingKeyCode_EnumRef = -1; public void PushThousandtoCodeLogicGameSettingKeyCode(RealStatePtr L, Thousandto.Code.Logic.GameSettingKeyCode val) { if (ThousandtoCodeLogicGameSettingKeyCode_TypeID == -1) { bool is_first; ThousandtoCodeLogicGameSettingKeyCode_TypeID = getTypeId(L, typeof(Thousandto.Code.Logic.GameSettingKeyCode), out is_first); if (ThousandtoCodeLogicGameSettingKeyCode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Code.Logic.GameSettingKeyCode)); ThousandtoCodeLogicGameSettingKeyCode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCodeLogicGameSettingKeyCode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCodeLogicGameSettingKeyCode_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Code.Logic.GameSettingKeyCode ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCodeLogicGameSettingKeyCode_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 Thousandto.Code.Logic.GameSettingKeyCode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeLogicGameSettingKeyCode_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Logic.GameSettingKeyCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Code.Logic.GameSettingKeyCode"); } val = (Thousandto.Code.Logic.GameSettingKeyCode)e; } else { val = (Thousandto.Code.Logic.GameSettingKeyCode)objectCasters.GetCaster(typeof(Thousandto.Code.Logic.GameSettingKeyCode))(L, index, null); } } public void UpdateThousandtoCodeLogicGameSettingKeyCode(RealStatePtr L, int index, Thousandto.Code.Logic.GameSettingKeyCode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeLogicGameSettingKeyCode_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Logic.GameSettingKeyCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Code.Logic.GameSettingKeyCode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCodeLogicLocalPlayerBTTaskBDTaskTargetType_TypeID = -1; int ThousandtoCodeLogicLocalPlayerBTTaskBDTaskTargetType_EnumRef = -1; public void PushThousandtoCodeLogicLocalPlayerBTTaskBDTaskTargetType(RealStatePtr L, Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType val) { if (ThousandtoCodeLogicLocalPlayerBTTaskBDTaskTargetType_TypeID == -1) { bool is_first; ThousandtoCodeLogicLocalPlayerBTTaskBDTaskTargetType_TypeID = getTypeId(L, typeof(Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType), out is_first); if (ThousandtoCodeLogicLocalPlayerBTTaskBDTaskTargetType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType)); ThousandtoCodeLogicLocalPlayerBTTaskBDTaskTargetType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCodeLogicLocalPlayerBTTaskBDTaskTargetType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCodeLogicLocalPlayerBTTaskBDTaskTargetType_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCodeLogicLocalPlayerBTTaskBDTaskTargetType_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 Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeLogicLocalPlayerBTTaskBDTaskTargetType_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType"); } val = (Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType)e; } else { val = (Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType)objectCasters.GetCaster(typeof(Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType))(L, index, null); } } public void UpdateThousandtoCodeLogicLocalPlayerBTTaskBDTaskTargetType(RealStatePtr L, int index, Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeLogicLocalPlayerBTTaskBDTaskTargetType_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineWrapMode_TypeID = -1; int UnityEngineWrapMode_EnumRef = -1; public void PushUnityEngineWrapMode(RealStatePtr L, UnityEngine.WrapMode val) { if (UnityEngineWrapMode_TypeID == -1) { bool is_first; UnityEngineWrapMode_TypeID = getTypeId(L, typeof(UnityEngine.WrapMode), out is_first); if (UnityEngineWrapMode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.WrapMode)); UnityEngineWrapMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineWrapMode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineWrapMode_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.WrapMode ,value="+val); } LuaAPI.lua_getref(L, UnityEngineWrapMode_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.WrapMode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineWrapMode_TypeID) { throw new Exception("invalid userdata for UnityEngine.WrapMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.WrapMode"); } val = (UnityEngine.WrapMode)e; } else { val = (UnityEngine.WrapMode)objectCasters.GetCaster(typeof(UnityEngine.WrapMode))(L, index, null); } } public void UpdateUnityEngineWrapMode(RealStatePtr L, int index, UnityEngine.WrapMode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineWrapMode_TypeID) { throw new Exception("invalid userdata for UnityEngine.WrapMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.WrapMode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCoreAssetAnimationPartType_TypeID = -1; int ThousandtoCoreAssetAnimationPartType_EnumRef = -1; public void PushThousandtoCoreAssetAnimationPartType(RealStatePtr L, Thousandto.Core.Asset.AnimationPartType val) { if (ThousandtoCoreAssetAnimationPartType_TypeID == -1) { bool is_first; ThousandtoCoreAssetAnimationPartType_TypeID = getTypeId(L, typeof(Thousandto.Core.Asset.AnimationPartType), out is_first); if (ThousandtoCoreAssetAnimationPartType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Core.Asset.AnimationPartType)); ThousandtoCoreAssetAnimationPartType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCoreAssetAnimationPartType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCoreAssetAnimationPartType_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Core.Asset.AnimationPartType ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCoreAssetAnimationPartType_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 Thousandto.Core.Asset.AnimationPartType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCoreAssetAnimationPartType_TypeID) { throw new Exception("invalid userdata for Thousandto.Core.Asset.AnimationPartType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Core.Asset.AnimationPartType"); } val = (Thousandto.Core.Asset.AnimationPartType)e; } else { val = (Thousandto.Core.Asset.AnimationPartType)objectCasters.GetCaster(typeof(Thousandto.Core.Asset.AnimationPartType))(L, index, null); } } public void UpdateThousandtoCoreAssetAnimationPartType(RealStatePtr L, int index, Thousandto.Core.Asset.AnimationPartType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCoreAssetAnimationPartType_TypeID) { throw new Exception("invalid userdata for Thousandto.Core.Asset.AnimationPartType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Core.Asset.AnimationPartType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UnityEngineAnimationCullingType_TypeID = -1; int UnityEngineAnimationCullingType_EnumRef = -1; public void PushUnityEngineAnimationCullingType(RealStatePtr L, UnityEngine.AnimationCullingType val) { if (UnityEngineAnimationCullingType_TypeID == -1) { bool is_first; UnityEngineAnimationCullingType_TypeID = getTypeId(L, typeof(UnityEngine.AnimationCullingType), out is_first); if (UnityEngineAnimationCullingType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.AnimationCullingType)); UnityEngineAnimationCullingType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineAnimationCullingType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineAnimationCullingType_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.AnimationCullingType ,value="+val); } LuaAPI.lua_getref(L, UnityEngineAnimationCullingType_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.AnimationCullingType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineAnimationCullingType_TypeID) { throw new Exception("invalid userdata for UnityEngine.AnimationCullingType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.AnimationCullingType"); } val = (UnityEngine.AnimationCullingType)e; } else { val = (UnityEngine.AnimationCullingType)objectCasters.GetCaster(typeof(UnityEngine.AnimationCullingType))(L, index, null); } } public void UpdateUnityEngineAnimationCullingType(RealStatePtr L, int index, UnityEngine.AnimationCullingType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineAnimationCullingType_TypeID) { throw new Exception("invalid userdata for UnityEngine.AnimationCullingType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.AnimationCullingType ,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 (!CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.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 ThousandtoCoreAssetEntityStateID_TypeID = -1; int ThousandtoCoreAssetEntityStateID_EnumRef = -1; public void PushThousandtoCoreAssetEntityStateID(RealStatePtr L, Thousandto.Core.Asset.EntityStateID val) { if (ThousandtoCoreAssetEntityStateID_TypeID == -1) { bool is_first; ThousandtoCoreAssetEntityStateID_TypeID = getTypeId(L, typeof(Thousandto.Core.Asset.EntityStateID), out is_first); if (ThousandtoCoreAssetEntityStateID_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Core.Asset.EntityStateID)); ThousandtoCoreAssetEntityStateID_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCoreAssetEntityStateID_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCoreAssetEntityStateID_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Core.Asset.EntityStateID ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCoreAssetEntityStateID_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 Thousandto.Core.Asset.EntityStateID val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCoreAssetEntityStateID_TypeID) { throw new Exception("invalid userdata for Thousandto.Core.Asset.EntityStateID"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Core.Asset.EntityStateID"); } val = (Thousandto.Core.Asset.EntityStateID)e; } else { val = (Thousandto.Core.Asset.EntityStateID)objectCasters.GetCaster(typeof(Thousandto.Core.Asset.EntityStateID))(L, index, null); } } public void UpdateThousandtoCoreAssetEntityStateID(RealStatePtr L, int index, Thousandto.Core.Asset.EntityStateID val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCoreAssetEntityStateID_TypeID) { throw new Exception("invalid userdata for Thousandto.Core.Asset.EntityStateID"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Core.Asset.EntityStateID ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCoreAssetVFXPlayState_TypeID = -1; int ThousandtoCoreAssetVFXPlayState_EnumRef = -1; public void PushThousandtoCoreAssetVFXPlayState(RealStatePtr L, Thousandto.Core.Asset.VFXPlayState val) { if (ThousandtoCoreAssetVFXPlayState_TypeID == -1) { bool is_first; ThousandtoCoreAssetVFXPlayState_TypeID = getTypeId(L, typeof(Thousandto.Core.Asset.VFXPlayState), out is_first); if (ThousandtoCoreAssetVFXPlayState_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Core.Asset.VFXPlayState)); ThousandtoCoreAssetVFXPlayState_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCoreAssetVFXPlayState_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCoreAssetVFXPlayState_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Core.Asset.VFXPlayState ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCoreAssetVFXPlayState_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 Thousandto.Core.Asset.VFXPlayState val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCoreAssetVFXPlayState_TypeID) { throw new Exception("invalid userdata for Thousandto.Core.Asset.VFXPlayState"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Core.Asset.VFXPlayState"); } val = (Thousandto.Core.Asset.VFXPlayState)e; } else { val = (Thousandto.Core.Asset.VFXPlayState)objectCasters.GetCaster(typeof(Thousandto.Core.Asset.VFXPlayState))(L, index, null); } } public void UpdateThousandtoCoreAssetVFXPlayState(RealStatePtr L, int index, Thousandto.Core.Asset.VFXPlayState val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCoreAssetVFXPlayState_TypeID) { throw new Exception("invalid userdata for Thousandto.Core.Asset.VFXPlayState"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Core.Asset.VFXPlayState ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoPluginsCommonUIFormType_TypeID = -1; int ThousandtoPluginsCommonUIFormType_EnumRef = -1; public void PushThousandtoPluginsCommonUIFormType(RealStatePtr L, Thousandto.Plugins.Common.UIFormType val) { if (ThousandtoPluginsCommonUIFormType_TypeID == -1) { bool is_first; ThousandtoPluginsCommonUIFormType_TypeID = getTypeId(L, typeof(Thousandto.Plugins.Common.UIFormType), out is_first); if (ThousandtoPluginsCommonUIFormType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Plugins.Common.UIFormType)); ThousandtoPluginsCommonUIFormType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoPluginsCommonUIFormType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoPluginsCommonUIFormType_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Plugins.Common.UIFormType ,value="+val); } LuaAPI.lua_getref(L, ThousandtoPluginsCommonUIFormType_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 Thousandto.Plugins.Common.UIFormType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoPluginsCommonUIFormType_TypeID) { throw new Exception("invalid userdata for Thousandto.Plugins.Common.UIFormType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Plugins.Common.UIFormType"); } val = (Thousandto.Plugins.Common.UIFormType)e; } else { val = (Thousandto.Plugins.Common.UIFormType)objectCasters.GetCaster(typeof(Thousandto.Plugins.Common.UIFormType))(L, index, null); } } public void UpdateThousandtoPluginsCommonUIFormType(RealStatePtr L, int index, Thousandto.Plugins.Common.UIFormType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoPluginsCommonUIFormType_TypeID) { throw new Exception("invalid userdata for Thousandto.Plugins.Common.UIFormType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Plugins.Common.UIFormType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCodeLogicMsgInfoPriority_TypeID = -1; int ThousandtoCodeLogicMsgInfoPriority_EnumRef = -1; public void PushThousandtoCodeLogicMsgInfoPriority(RealStatePtr L, Thousandto.Code.Logic.MsgInfoPriority val) { if (ThousandtoCodeLogicMsgInfoPriority_TypeID == -1) { bool is_first; ThousandtoCodeLogicMsgInfoPriority_TypeID = getTypeId(L, typeof(Thousandto.Code.Logic.MsgInfoPriority), out is_first); if (ThousandtoCodeLogicMsgInfoPriority_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Code.Logic.MsgInfoPriority)); ThousandtoCodeLogicMsgInfoPriority_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCodeLogicMsgInfoPriority_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCodeLogicMsgInfoPriority_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Code.Logic.MsgInfoPriority ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCodeLogicMsgInfoPriority_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 Thousandto.Code.Logic.MsgInfoPriority val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeLogicMsgInfoPriority_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Logic.MsgInfoPriority"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Code.Logic.MsgInfoPriority"); } val = (Thousandto.Code.Logic.MsgInfoPriority)e; } else { val = (Thousandto.Code.Logic.MsgInfoPriority)objectCasters.GetCaster(typeof(Thousandto.Code.Logic.MsgInfoPriority))(L, index, null); } } public void UpdateThousandtoCodeLogicMsgInfoPriority(RealStatePtr L, int index, Thousandto.Code.Logic.MsgInfoPriority val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeLogicMsgInfoPriority_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Logic.MsgInfoPriority"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Code.Logic.MsgInfoPriority ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCodeGlobalRoleBaseAttribute_TypeID = -1; int ThousandtoCodeGlobalRoleBaseAttribute_EnumRef = -1; public void PushThousandtoCodeGlobalRoleBaseAttribute(RealStatePtr L, Thousandto.Code.Global.RoleBaseAttribute val) { if (ThousandtoCodeGlobalRoleBaseAttribute_TypeID == -1) { bool is_first; ThousandtoCodeGlobalRoleBaseAttribute_TypeID = getTypeId(L, typeof(Thousandto.Code.Global.RoleBaseAttribute), out is_first); if (ThousandtoCodeGlobalRoleBaseAttribute_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Code.Global.RoleBaseAttribute)); ThousandtoCodeGlobalRoleBaseAttribute_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCodeGlobalRoleBaseAttribute_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCodeGlobalRoleBaseAttribute_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Code.Global.RoleBaseAttribute ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCodeGlobalRoleBaseAttribute_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 Thousandto.Code.Global.RoleBaseAttribute val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeGlobalRoleBaseAttribute_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Global.RoleBaseAttribute"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Code.Global.RoleBaseAttribute"); } val = (Thousandto.Code.Global.RoleBaseAttribute)e; } else { val = (Thousandto.Code.Global.RoleBaseAttribute)objectCasters.GetCaster(typeof(Thousandto.Code.Global.RoleBaseAttribute))(L, index, null); } } public void UpdateThousandtoCodeGlobalRoleBaseAttribute(RealStatePtr L, int index, Thousandto.Code.Global.RoleBaseAttribute val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCodeGlobalRoleBaseAttribute_TypeID) { throw new Exception("invalid userdata for Thousandto.Code.Global.RoleBaseAttribute"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Code.Global.RoleBaseAttribute ,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 (!CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.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 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 (!CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.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 UIWidgetAspectRatioSource_TypeID = -1; int UIWidgetAspectRatioSource_EnumRef = -1; public void PushUIWidgetAspectRatioSource(RealStatePtr L, UIWidget.AspectRatioSource val) { if (UIWidgetAspectRatioSource_TypeID == -1) { bool is_first; UIWidgetAspectRatioSource_TypeID = getTypeId(L, typeof(UIWidget.AspectRatioSource), out is_first); if (UIWidgetAspectRatioSource_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIWidget.AspectRatioSource)); UIWidgetAspectRatioSource_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIWidgetAspectRatioSource_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIWidgetAspectRatioSource_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIWidget.AspectRatioSource ,value="+val); } LuaAPI.lua_getref(L, UIWidgetAspectRatioSource_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 UIWidget.AspectRatioSource val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIWidgetAspectRatioSource_TypeID) { throw new Exception("invalid userdata for UIWidget.AspectRatioSource"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIWidget.AspectRatioSource"); } val = (UIWidget.AspectRatioSource)e; } else { val = (UIWidget.AspectRatioSource)objectCasters.GetCaster(typeof(UIWidget.AspectRatioSource))(L, index, null); } } public void UpdateUIWidgetAspectRatioSource(RealStatePtr L, int index, UIWidget.AspectRatioSource val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIWidgetAspectRatioSource_TypeID) { throw new Exception("invalid userdata for UIWidget.AspectRatioSource"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIWidget.AspectRatioSource ,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 (!CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.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 UILabelCrispness_TypeID = -1; int UILabelCrispness_EnumRef = -1; public void PushUILabelCrispness(RealStatePtr L, UILabel.Crispness val) { if (UILabelCrispness_TypeID == -1) { bool is_first; UILabelCrispness_TypeID = getTypeId(L, typeof(UILabel.Crispness), out is_first); if (UILabelCrispness_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UILabel.Crispness)); UILabelCrispness_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UILabelCrispness_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UILabelCrispness_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UILabel.Crispness ,value="+val); } LuaAPI.lua_getref(L, UILabelCrispness_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 UILabel.Crispness val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UILabelCrispness_TypeID) { throw new Exception("invalid userdata for UILabel.Crispness"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UILabel.Crispness"); } val = (UILabel.Crispness)e; } else { val = (UILabel.Crispness)objectCasters.GetCaster(typeof(UILabel.Crispness))(L, index, null); } } public void UpdateUILabelCrispness(RealStatePtr L, int index, UILabel.Crispness val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UILabelCrispness_TypeID) { throw new Exception("invalid userdata for UILabel.Crispness"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UILabel.Crispness ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UILabelOverflow_TypeID = -1; int UILabelOverflow_EnumRef = -1; public void PushUILabelOverflow(RealStatePtr L, UILabel.Overflow val) { if (UILabelOverflow_TypeID == -1) { bool is_first; UILabelOverflow_TypeID = getTypeId(L, typeof(UILabel.Overflow), out is_first); if (UILabelOverflow_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UILabel.Overflow)); UILabelOverflow_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UILabelOverflow_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UILabelOverflow_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UILabel.Overflow ,value="+val); } LuaAPI.lua_getref(L, UILabelOverflow_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 UILabel.Overflow val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UILabelOverflow_TypeID) { throw new Exception("invalid userdata for UILabel.Overflow"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UILabel.Overflow"); } val = (UILabel.Overflow)e; } else { val = (UILabel.Overflow)objectCasters.GetCaster(typeof(UILabel.Overflow))(L, index, null); } } public void UpdateUILabelOverflow(RealStatePtr L, int index, UILabel.Overflow val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UILabelOverflow_TypeID) { throw new Exception("invalid userdata for UILabel.Overflow"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UILabel.Overflow ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UILabelEffect_TypeID = -1; int UILabelEffect_EnumRef = -1; public void PushUILabelEffect(RealStatePtr L, UILabel.Effect val) { if (UILabelEffect_TypeID == -1) { bool is_first; UILabelEffect_TypeID = getTypeId(L, typeof(UILabel.Effect), out is_first); if (UILabelEffect_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UILabel.Effect)); UILabelEffect_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UILabelEffect_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UILabelEffect_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UILabel.Effect ,value="+val); } LuaAPI.lua_getref(L, UILabelEffect_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 UILabel.Effect val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UILabelEffect_TypeID) { throw new Exception("invalid userdata for UILabel.Effect"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UILabel.Effect"); } val = (UILabel.Effect)e; } else { val = (UILabel.Effect)objectCasters.GetCaster(typeof(UILabel.Effect))(L, index, null); } } public void UpdateUILabelEffect(RealStatePtr L, int index, UILabel.Effect val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UILabelEffect_TypeID) { throw new Exception("invalid userdata for UILabel.Effect"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UILabel.Effect ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIInputOnReturnKey_TypeID = -1; int UIInputOnReturnKey_EnumRef = -1; public void PushUIInputOnReturnKey(RealStatePtr L, UIInput.OnReturnKey val) { if (UIInputOnReturnKey_TypeID == -1) { bool is_first; UIInputOnReturnKey_TypeID = getTypeId(L, typeof(UIInput.OnReturnKey), out is_first); if (UIInputOnReturnKey_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIInput.OnReturnKey)); UIInputOnReturnKey_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIInputOnReturnKey_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIInputOnReturnKey_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIInput.OnReturnKey ,value="+val); } LuaAPI.lua_getref(L, UIInputOnReturnKey_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 UIInput.OnReturnKey val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIInputOnReturnKey_TypeID) { throw new Exception("invalid userdata for UIInput.OnReturnKey"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIInput.OnReturnKey"); } val = (UIInput.OnReturnKey)e; } else { val = (UIInput.OnReturnKey)objectCasters.GetCaster(typeof(UIInput.OnReturnKey))(L, index, null); } } public void UpdateUIInputOnReturnKey(RealStatePtr L, int index, UIInput.OnReturnKey val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIInputOnReturnKey_TypeID) { throw new Exception("invalid userdata for UIInput.OnReturnKey"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIInput.OnReturnKey ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIInputKeyboardType_TypeID = -1; int UIInputKeyboardType_EnumRef = -1; public void PushUIInputKeyboardType(RealStatePtr L, UIInput.KeyboardType val) { if (UIInputKeyboardType_TypeID == -1) { bool is_first; UIInputKeyboardType_TypeID = getTypeId(L, typeof(UIInput.KeyboardType), out is_first); if (UIInputKeyboardType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIInput.KeyboardType)); UIInputKeyboardType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIInputKeyboardType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIInputKeyboardType_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIInput.KeyboardType ,value="+val); } LuaAPI.lua_getref(L, UIInputKeyboardType_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 UIInput.KeyboardType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIInputKeyboardType_TypeID) { throw new Exception("invalid userdata for UIInput.KeyboardType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIInput.KeyboardType"); } val = (UIInput.KeyboardType)e; } else { val = (UIInput.KeyboardType)objectCasters.GetCaster(typeof(UIInput.KeyboardType))(L, index, null); } } public void UpdateUIInputKeyboardType(RealStatePtr L, int index, UIInput.KeyboardType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIInputKeyboardType_TypeID) { throw new Exception("invalid userdata for UIInput.KeyboardType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIInput.KeyboardType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIInputValidation_TypeID = -1; int UIInputValidation_EnumRef = -1; public void PushUIInputValidation(RealStatePtr L, UIInput.Validation val) { if (UIInputValidation_TypeID == -1) { bool is_first; UIInputValidation_TypeID = getTypeId(L, typeof(UIInput.Validation), out is_first); if (UIInputValidation_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIInput.Validation)); UIInputValidation_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIInputValidation_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIInputValidation_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIInput.Validation ,value="+val); } LuaAPI.lua_getref(L, UIInputValidation_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 UIInput.Validation val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIInputValidation_TypeID) { throw new Exception("invalid userdata for UIInput.Validation"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIInput.Validation"); } val = (UIInput.Validation)e; } else { val = (UIInput.Validation)objectCasters.GetCaster(typeof(UIInput.Validation))(L, index, null); } } public void UpdateUIInputValidation(RealStatePtr L, int index, UIInput.Validation val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIInputValidation_TypeID) { throw new Exception("invalid userdata for UIInput.Validation"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIInput.Validation ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIInputInputType_TypeID = -1; int UIInputInputType_EnumRef = -1; public void PushUIInputInputType(RealStatePtr L, UIInput.InputType val) { if (UIInputInputType_TypeID == -1) { bool is_first; UIInputInputType_TypeID = getTypeId(L, typeof(UIInput.InputType), out is_first); if (UIInputInputType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIInput.InputType)); UIInputInputType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIInputInputType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIInputInputType_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIInput.InputType ,value="+val); } LuaAPI.lua_getref(L, UIInputInputType_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 UIInput.InputType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIInputInputType_TypeID) { throw new Exception("invalid userdata for UIInput.InputType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIInput.InputType"); } val = (UIInput.InputType)e; } else { val = (UIInput.InputType)objectCasters.GetCaster(typeof(UIInput.InputType))(L, index, null); } } public void UpdateUIInputInputType(RealStatePtr L, int index, UIInput.InputType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIInputInputType_TypeID) { throw new Exception("invalid userdata for UIInput.InputType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIInput.InputType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIPanelRenderQueue_TypeID = -1; int UIPanelRenderQueue_EnumRef = -1; public void PushUIPanelRenderQueue(RealStatePtr L, UIPanel.RenderQueue val) { if (UIPanelRenderQueue_TypeID == -1) { bool is_first; UIPanelRenderQueue_TypeID = getTypeId(L, typeof(UIPanel.RenderQueue), out is_first); if (UIPanelRenderQueue_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIPanel.RenderQueue)); UIPanelRenderQueue_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIPanelRenderQueue_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIPanelRenderQueue_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIPanel.RenderQueue ,value="+val); } LuaAPI.lua_getref(L, UIPanelRenderQueue_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 UIPanel.RenderQueue val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIPanelRenderQueue_TypeID) { throw new Exception("invalid userdata for UIPanel.RenderQueue"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIPanel.RenderQueue"); } val = (UIPanel.RenderQueue)e; } else { val = (UIPanel.RenderQueue)objectCasters.GetCaster(typeof(UIPanel.RenderQueue))(L, index, null); } } public void UpdateUIPanelRenderQueue(RealStatePtr L, int index, UIPanel.RenderQueue val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIPanelRenderQueue_TypeID) { throw new Exception("invalid userdata for UIPanel.RenderQueue"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIPanel.RenderQueue ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIButtonColorState_TypeID = -1; int UIButtonColorState_EnumRef = -1; public void PushUIButtonColorState(RealStatePtr L, UIButtonColor.State val) { if (UIButtonColorState_TypeID == -1) { bool is_first; UIButtonColorState_TypeID = getTypeId(L, typeof(UIButtonColor.State), out is_first); if (UIButtonColorState_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIButtonColor.State)); UIButtonColorState_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIButtonColorState_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIButtonColorState_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIButtonColor.State ,value="+val); } LuaAPI.lua_getref(L, UIButtonColorState_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 UIButtonColor.State val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIButtonColorState_TypeID) { throw new Exception("invalid userdata for UIButtonColor.State"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIButtonColor.State"); } val = (UIButtonColor.State)e; } else { val = (UIButtonColor.State)objectCasters.GetCaster(typeof(UIButtonColor.State))(L, index, null); } } public void UpdateUIButtonColorState(RealStatePtr L, int index, UIButtonColor.State val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIButtonColorState_TypeID) { throw new Exception("invalid userdata for UIButtonColor.State"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIButtonColor.State ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIBasicSpriteFlip_TypeID = -1; int UIBasicSpriteFlip_EnumRef = -1; public void PushUIBasicSpriteFlip(RealStatePtr L, UIBasicSprite.Flip val) { if (UIBasicSpriteFlip_TypeID == -1) { bool is_first; UIBasicSpriteFlip_TypeID = getTypeId(L, typeof(UIBasicSprite.Flip), out is_first); if (UIBasicSpriteFlip_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIBasicSprite.Flip)); UIBasicSpriteFlip_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIBasicSpriteFlip_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIBasicSpriteFlip_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIBasicSprite.Flip ,value="+val); } LuaAPI.lua_getref(L, UIBasicSpriteFlip_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 UIBasicSprite.Flip val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIBasicSpriteFlip_TypeID) { throw new Exception("invalid userdata for UIBasicSprite.Flip"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIBasicSprite.Flip"); } val = (UIBasicSprite.Flip)e; } else { val = (UIBasicSprite.Flip)objectCasters.GetCaster(typeof(UIBasicSprite.Flip))(L, index, null); } } public void UpdateUIBasicSpriteFlip(RealStatePtr L, int index, UIBasicSprite.Flip val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIBasicSpriteFlip_TypeID) { throw new Exception("invalid userdata for UIBasicSprite.Flip"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIBasicSprite.Flip ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIBasicSpriteAdvancedType_TypeID = -1; int UIBasicSpriteAdvancedType_EnumRef = -1; public void PushUIBasicSpriteAdvancedType(RealStatePtr L, UIBasicSprite.AdvancedType val) { if (UIBasicSpriteAdvancedType_TypeID == -1) { bool is_first; UIBasicSpriteAdvancedType_TypeID = getTypeId(L, typeof(UIBasicSprite.AdvancedType), out is_first); if (UIBasicSpriteAdvancedType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIBasicSprite.AdvancedType)); UIBasicSpriteAdvancedType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIBasicSpriteAdvancedType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIBasicSpriteAdvancedType_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIBasicSprite.AdvancedType ,value="+val); } LuaAPI.lua_getref(L, UIBasicSpriteAdvancedType_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 UIBasicSprite.AdvancedType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIBasicSpriteAdvancedType_TypeID) { throw new Exception("invalid userdata for UIBasicSprite.AdvancedType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIBasicSprite.AdvancedType"); } val = (UIBasicSprite.AdvancedType)e; } else { val = (UIBasicSprite.AdvancedType)objectCasters.GetCaster(typeof(UIBasicSprite.AdvancedType))(L, index, null); } } public void UpdateUIBasicSpriteAdvancedType(RealStatePtr L, int index, UIBasicSprite.AdvancedType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIBasicSpriteAdvancedType_TypeID) { throw new Exception("invalid userdata for UIBasicSprite.AdvancedType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIBasicSprite.AdvancedType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIBasicSpriteFillDirection_TypeID = -1; int UIBasicSpriteFillDirection_EnumRef = -1; public void PushUIBasicSpriteFillDirection(RealStatePtr L, UIBasicSprite.FillDirection val) { if (UIBasicSpriteFillDirection_TypeID == -1) { bool is_first; UIBasicSpriteFillDirection_TypeID = getTypeId(L, typeof(UIBasicSprite.FillDirection), out is_first); if (UIBasicSpriteFillDirection_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIBasicSprite.FillDirection)); UIBasicSpriteFillDirection_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIBasicSpriteFillDirection_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIBasicSpriteFillDirection_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIBasicSprite.FillDirection ,value="+val); } LuaAPI.lua_getref(L, UIBasicSpriteFillDirection_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 UIBasicSprite.FillDirection val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIBasicSpriteFillDirection_TypeID) { throw new Exception("invalid userdata for UIBasicSprite.FillDirection"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIBasicSprite.FillDirection"); } val = (UIBasicSprite.FillDirection)e; } else { val = (UIBasicSprite.FillDirection)objectCasters.GetCaster(typeof(UIBasicSprite.FillDirection))(L, index, null); } } public void UpdateUIBasicSpriteFillDirection(RealStatePtr L, int index, UIBasicSprite.FillDirection val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIBasicSpriteFillDirection_TypeID) { throw new Exception("invalid userdata for UIBasicSprite.FillDirection"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIBasicSprite.FillDirection ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIBasicSpriteType_TypeID = -1; int UIBasicSpriteType_EnumRef = -1; public void PushUIBasicSpriteType(RealStatePtr L, UIBasicSprite.Type val) { if (UIBasicSpriteType_TypeID == -1) { bool is_first; UIBasicSpriteType_TypeID = getTypeId(L, typeof(UIBasicSprite.Type), out is_first); if (UIBasicSpriteType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIBasicSprite.Type)); UIBasicSpriteType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIBasicSpriteType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIBasicSpriteType_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIBasicSprite.Type ,value="+val); } LuaAPI.lua_getref(L, UIBasicSpriteType_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 UIBasicSprite.Type val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIBasicSpriteType_TypeID) { throw new Exception("invalid userdata for UIBasicSprite.Type"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIBasicSprite.Type"); } val = (UIBasicSprite.Type)e; } else { val = (UIBasicSprite.Type)objectCasters.GetCaster(typeof(UIBasicSprite.Type))(L, index, null); } } public void UpdateUIBasicSpriteType(RealStatePtr L, int index, UIBasicSprite.Type val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIBasicSpriteType_TypeID) { throw new Exception("invalid userdata for UIBasicSprite.Type"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIBasicSprite.Type ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIRectAnchorUpdate_TypeID = -1; int UIRectAnchorUpdate_EnumRef = -1; public void PushUIRectAnchorUpdate(RealStatePtr L, UIRect.AnchorUpdate val) { if (UIRectAnchorUpdate_TypeID == -1) { bool is_first; UIRectAnchorUpdate_TypeID = getTypeId(L, typeof(UIRect.AnchorUpdate), out is_first); if (UIRectAnchorUpdate_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIRect.AnchorUpdate)); UIRectAnchorUpdate_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIRectAnchorUpdate_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIRectAnchorUpdate_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIRect.AnchorUpdate ,value="+val); } LuaAPI.lua_getref(L, UIRectAnchorUpdate_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 UIRect.AnchorUpdate val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIRectAnchorUpdate_TypeID) { throw new Exception("invalid userdata for UIRect.AnchorUpdate"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIRect.AnchorUpdate"); } val = (UIRect.AnchorUpdate)e; } else { val = (UIRect.AnchorUpdate)objectCasters.GetCaster(typeof(UIRect.AnchorUpdate))(L, index, null); } } public void UpdateUIRectAnchorUpdate(RealStatePtr L, int index, UIRect.AnchorUpdate val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIRectAnchorUpdate_TypeID) { throw new Exception("invalid userdata for UIRect.AnchorUpdate"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIRect.AnchorUpdate ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UITableSorting_TypeID = -1; int UITableSorting_EnumRef = -1; public void PushUITableSorting(RealStatePtr L, UITable.Sorting val) { if (UITableSorting_TypeID == -1) { bool is_first; UITableSorting_TypeID = getTypeId(L, typeof(UITable.Sorting), out is_first); if (UITableSorting_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UITable.Sorting)); UITableSorting_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UITableSorting_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UITableSorting_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UITable.Sorting ,value="+val); } LuaAPI.lua_getref(L, UITableSorting_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 UITable.Sorting val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UITableSorting_TypeID) { throw new Exception("invalid userdata for UITable.Sorting"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UITable.Sorting"); } val = (UITable.Sorting)e; } else { val = (UITable.Sorting)objectCasters.GetCaster(typeof(UITable.Sorting))(L, index, null); } } public void UpdateUITableSorting(RealStatePtr L, int index, UITable.Sorting val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UITableSorting_TypeID) { throw new Exception("invalid userdata for UITable.Sorting"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UITable.Sorting ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UITableDirection_TypeID = -1; int UITableDirection_EnumRef = -1; public void PushUITableDirection(RealStatePtr L, UITable.Direction val) { if (UITableDirection_TypeID == -1) { bool is_first; UITableDirection_TypeID = getTypeId(L, typeof(UITable.Direction), out is_first); if (UITableDirection_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UITable.Direction)); UITableDirection_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UITableDirection_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UITableDirection_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UITable.Direction ,value="+val); } LuaAPI.lua_getref(L, UITableDirection_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 UITable.Direction val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UITableDirection_TypeID) { throw new Exception("invalid userdata for UITable.Direction"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UITable.Direction"); } val = (UITable.Direction)e; } else { val = (UITable.Direction)objectCasters.GetCaster(typeof(UITable.Direction))(L, index, null); } } public void UpdateUITableDirection(RealStatePtr L, int index, UITable.Direction val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UITableDirection_TypeID) { throw new Exception("invalid userdata for UITable.Direction"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UITable.Direction ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIGridSorting_TypeID = -1; int UIGridSorting_EnumRef = -1; public void PushUIGridSorting(RealStatePtr L, UIGrid.Sorting val) { if (UIGridSorting_TypeID == -1) { bool is_first; UIGridSorting_TypeID = getTypeId(L, typeof(UIGrid.Sorting), out is_first); if (UIGridSorting_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIGrid.Sorting)); UIGridSorting_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIGridSorting_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIGridSorting_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIGrid.Sorting ,value="+val); } LuaAPI.lua_getref(L, UIGridSorting_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 UIGrid.Sorting val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIGridSorting_TypeID) { throw new Exception("invalid userdata for UIGrid.Sorting"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIGrid.Sorting"); } val = (UIGrid.Sorting)e; } else { val = (UIGrid.Sorting)objectCasters.GetCaster(typeof(UIGrid.Sorting))(L, index, null); } } public void UpdateUIGridSorting(RealStatePtr L, int index, UIGrid.Sorting val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIGridSorting_TypeID) { throw new Exception("invalid userdata for UIGrid.Sorting"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIGrid.Sorting ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIGridArrangement_TypeID = -1; int UIGridArrangement_EnumRef = -1; public void PushUIGridArrangement(RealStatePtr L, UIGrid.Arrangement val) { if (UIGridArrangement_TypeID == -1) { bool is_first; UIGridArrangement_TypeID = getTypeId(L, typeof(UIGrid.Arrangement), out is_first); if (UIGridArrangement_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIGrid.Arrangement)); UIGridArrangement_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIGridArrangement_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIGridArrangement_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIGrid.Arrangement ,value="+val); } LuaAPI.lua_getref(L, UIGridArrangement_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 UIGrid.Arrangement val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIGridArrangement_TypeID) { throw new Exception("invalid userdata for UIGrid.Arrangement"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIGrid.Arrangement"); } val = (UIGrid.Arrangement)e; } else { val = (UIGrid.Arrangement)objectCasters.GetCaster(typeof(UIGrid.Arrangement))(L, index, null); } } public void UpdateUIGridArrangement(RealStatePtr L, int index, UIGrid.Arrangement val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIGridArrangement_TypeID) { throw new Exception("invalid userdata for UIGrid.Arrangement"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIGrid.Arrangement ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIScrollViewShowCondition_TypeID = -1; int UIScrollViewShowCondition_EnumRef = -1; public void PushUIScrollViewShowCondition(RealStatePtr L, UIScrollView.ShowCondition val) { if (UIScrollViewShowCondition_TypeID == -1) { bool is_first; UIScrollViewShowCondition_TypeID = getTypeId(L, typeof(UIScrollView.ShowCondition), out is_first); if (UIScrollViewShowCondition_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIScrollView.ShowCondition)); UIScrollViewShowCondition_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIScrollViewShowCondition_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIScrollViewShowCondition_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIScrollView.ShowCondition ,value="+val); } LuaAPI.lua_getref(L, UIScrollViewShowCondition_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 UIScrollView.ShowCondition val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIScrollViewShowCondition_TypeID) { throw new Exception("invalid userdata for UIScrollView.ShowCondition"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIScrollView.ShowCondition"); } val = (UIScrollView.ShowCondition)e; } else { val = (UIScrollView.ShowCondition)objectCasters.GetCaster(typeof(UIScrollView.ShowCondition))(L, index, null); } } public void UpdateUIScrollViewShowCondition(RealStatePtr L, int index, UIScrollView.ShowCondition val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIScrollViewShowCondition_TypeID) { throw new Exception("invalid userdata for UIScrollView.ShowCondition"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIScrollView.ShowCondition ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIScrollViewDragEffect_TypeID = -1; int UIScrollViewDragEffect_EnumRef = -1; public void PushUIScrollViewDragEffect(RealStatePtr L, UIScrollView.DragEffect val) { if (UIScrollViewDragEffect_TypeID == -1) { bool is_first; UIScrollViewDragEffect_TypeID = getTypeId(L, typeof(UIScrollView.DragEffect), out is_first); if (UIScrollViewDragEffect_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIScrollView.DragEffect)); UIScrollViewDragEffect_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIScrollViewDragEffect_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIScrollViewDragEffect_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIScrollView.DragEffect ,value="+val); } LuaAPI.lua_getref(L, UIScrollViewDragEffect_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 UIScrollView.DragEffect val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIScrollViewDragEffect_TypeID) { throw new Exception("invalid userdata for UIScrollView.DragEffect"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIScrollView.DragEffect"); } val = (UIScrollView.DragEffect)e; } else { val = (UIScrollView.DragEffect)objectCasters.GetCaster(typeof(UIScrollView.DragEffect))(L, index, null); } } public void UpdateUIScrollViewDragEffect(RealStatePtr L, int index, UIScrollView.DragEffect val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIScrollViewDragEffect_TypeID) { throw new Exception("invalid userdata for UIScrollView.DragEffect"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIScrollView.DragEffect ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIScrollViewMovement_TypeID = -1; int UIScrollViewMovement_EnumRef = -1; public void PushUIScrollViewMovement(RealStatePtr L, UIScrollView.Movement val) { if (UIScrollViewMovement_TypeID == -1) { bool is_first; UIScrollViewMovement_TypeID = getTypeId(L, typeof(UIScrollView.Movement), out is_first); if (UIScrollViewMovement_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIScrollView.Movement)); UIScrollViewMovement_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIScrollViewMovement_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIScrollViewMovement_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIScrollView.Movement ,value="+val); } LuaAPI.lua_getref(L, UIScrollViewMovement_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 UIScrollView.Movement val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIScrollViewMovement_TypeID) { throw new Exception("invalid userdata for UIScrollView.Movement"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIScrollView.Movement"); } val = (UIScrollView.Movement)e; } else { val = (UIScrollView.Movement)objectCasters.GetCaster(typeof(UIScrollView.Movement))(L, index, null); } } public void UpdateUIScrollViewMovement(RealStatePtr L, int index, UIScrollView.Movement val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIScrollViewMovement_TypeID) { throw new Exception("invalid userdata for UIScrollView.Movement"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIScrollView.Movement ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UICameraEventType_TypeID = -1; int UICameraEventType_EnumRef = -1; public void PushUICameraEventType(RealStatePtr L, UICamera.EventType val) { if (UICameraEventType_TypeID == -1) { bool is_first; UICameraEventType_TypeID = getTypeId(L, typeof(UICamera.EventType), out is_first); if (UICameraEventType_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UICamera.EventType)); UICameraEventType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UICameraEventType_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UICameraEventType_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UICamera.EventType ,value="+val); } LuaAPI.lua_getref(L, UICameraEventType_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 UICamera.EventType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UICameraEventType_TypeID) { throw new Exception("invalid userdata for UICamera.EventType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UICamera.EventType"); } val = (UICamera.EventType)e; } else { val = (UICamera.EventType)objectCasters.GetCaster(typeof(UICamera.EventType))(L, index, null); } } public void UpdateUICameraEventType(RealStatePtr L, int index, UICamera.EventType val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UICameraEventType_TypeID) { throw new Exception("invalid userdata for UICamera.EventType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UICamera.EventType ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UICameraClickNotification_TypeID = -1; int UICameraClickNotification_EnumRef = -1; public void PushUICameraClickNotification(RealStatePtr L, UICamera.ClickNotification val) { if (UICameraClickNotification_TypeID == -1) { bool is_first; UICameraClickNotification_TypeID = getTypeId(L, typeof(UICamera.ClickNotification), out is_first); if (UICameraClickNotification_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UICamera.ClickNotification)); UICameraClickNotification_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UICameraClickNotification_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UICameraClickNotification_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UICamera.ClickNotification ,value="+val); } LuaAPI.lua_getref(L, UICameraClickNotification_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 UICamera.ClickNotification val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UICameraClickNotification_TypeID) { throw new Exception("invalid userdata for UICamera.ClickNotification"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UICamera.ClickNotification"); } val = (UICamera.ClickNotification)e; } else { val = (UICamera.ClickNotification)objectCasters.GetCaster(typeof(UICamera.ClickNotification))(L, index, null); } } public void UpdateUICameraClickNotification(RealStatePtr L, int index, UICamera.ClickNotification val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UICameraClickNotification_TypeID) { throw new Exception("invalid userdata for UICamera.ClickNotification"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UICamera.ClickNotification ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UICameraControlScheme_TypeID = -1; int UICameraControlScheme_EnumRef = -1; public void PushUICameraControlScheme(RealStatePtr L, UICamera.ControlScheme val) { if (UICameraControlScheme_TypeID == -1) { bool is_first; UICameraControlScheme_TypeID = getTypeId(L, typeof(UICamera.ControlScheme), out is_first); if (UICameraControlScheme_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UICamera.ControlScheme)); UICameraControlScheme_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UICameraControlScheme_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UICameraControlScheme_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UICamera.ControlScheme ,value="+val); } LuaAPI.lua_getref(L, UICameraControlScheme_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 UICamera.ControlScheme val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UICameraControlScheme_TypeID) { throw new Exception("invalid userdata for UICamera.ControlScheme"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UICamera.ControlScheme"); } val = (UICamera.ControlScheme)e; } else { val = (UICamera.ControlScheme)objectCasters.GetCaster(typeof(UICamera.ControlScheme))(L, index, null); } } public void UpdateUICameraControlScheme(RealStatePtr L, int index, UICamera.ControlScheme val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UICameraControlScheme_TypeID) { throw new Exception("invalid userdata for UICamera.ControlScheme"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UICamera.ControlScheme ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int UIProgressBarFillDirection_TypeID = -1; int UIProgressBarFillDirection_EnumRef = -1; public void PushUIProgressBarFillDirection(RealStatePtr L, UIProgressBar.FillDirection val) { if (UIProgressBarFillDirection_TypeID == -1) { bool is_first; UIProgressBarFillDirection_TypeID = getTypeId(L, typeof(UIProgressBar.FillDirection), out is_first); if (UIProgressBarFillDirection_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UIProgressBar.FillDirection)); UIProgressBarFillDirection_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIProgressBarFillDirection_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIProgressBarFillDirection_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UIProgressBar.FillDirection ,value="+val); } LuaAPI.lua_getref(L, UIProgressBarFillDirection_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 UIProgressBar.FillDirection val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != UIProgressBarFillDirection_TypeID) { throw new Exception("invalid userdata for UIProgressBar.FillDirection"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UIProgressBar.FillDirection"); } val = (UIProgressBar.FillDirection)e; } else { val = (UIProgressBar.FillDirection)objectCasters.GetCaster(typeof(UIProgressBar.FillDirection))(L, index, null); } } public void UpdateUIProgressBarFillDirection(RealStatePtr L, int index, UIProgressBar.FillDirection val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UIProgressBarFillDirection_TypeID) { throw new Exception("invalid userdata for UIProgressBar.FillDirection"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UIProgressBar.FillDirection ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCoreAssetSlot_TypeID = -1; int ThousandtoCoreAssetSlot_EnumRef = -1; public void PushThousandtoCoreAssetSlot(RealStatePtr L, Thousandto.Core.Asset.Slot val) { if (ThousandtoCoreAssetSlot_TypeID == -1) { bool is_first; ThousandtoCoreAssetSlot_TypeID = getTypeId(L, typeof(Thousandto.Core.Asset.Slot), out is_first); if (ThousandtoCoreAssetSlot_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Core.Asset.Slot)); ThousandtoCoreAssetSlot_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCoreAssetSlot_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCoreAssetSlot_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Core.Asset.Slot ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCoreAssetSlot_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 Thousandto.Core.Asset.Slot val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCoreAssetSlot_TypeID) { throw new Exception("invalid userdata for Thousandto.Core.Asset.Slot"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Core.Asset.Slot"); } val = (Thousandto.Core.Asset.Slot)e; } else { val = (Thousandto.Core.Asset.Slot)objectCasters.GetCaster(typeof(Thousandto.Core.Asset.Slot))(L, index, null); } } public void UpdateThousandtoCoreAssetSlot(RealStatePtr L, int index, Thousandto.Core.Asset.Slot val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCoreAssetSlot_TypeID) { throw new Exception("invalid userdata for Thousandto.Core.Asset.Slot"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Core.Asset.Slot ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCoreAssetTimelinePlayState_TypeID = -1; int ThousandtoCoreAssetTimelinePlayState_EnumRef = -1; public void PushThousandtoCoreAssetTimelinePlayState(RealStatePtr L, Thousandto.Core.Asset.TimelinePlayState val) { if (ThousandtoCoreAssetTimelinePlayState_TypeID == -1) { bool is_first; ThousandtoCoreAssetTimelinePlayState_TypeID = getTypeId(L, typeof(Thousandto.Core.Asset.TimelinePlayState), out is_first); if (ThousandtoCoreAssetTimelinePlayState_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Core.Asset.TimelinePlayState)); ThousandtoCoreAssetTimelinePlayState_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCoreAssetTimelinePlayState_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCoreAssetTimelinePlayState_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Core.Asset.TimelinePlayState ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCoreAssetTimelinePlayState_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 Thousandto.Core.Asset.TimelinePlayState val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCoreAssetTimelinePlayState_TypeID) { throw new Exception("invalid userdata for Thousandto.Core.Asset.TimelinePlayState"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Core.Asset.TimelinePlayState"); } val = (Thousandto.Core.Asset.TimelinePlayState)e; } else { val = (Thousandto.Core.Asset.TimelinePlayState)objectCasters.GetCaster(typeof(Thousandto.Core.Asset.TimelinePlayState))(L, index, null); } } public void UpdateThousandtoCoreAssetTimelinePlayState(RealStatePtr L, int index, Thousandto.Core.Asset.TimelinePlayState val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCoreAssetTimelinePlayState_TypeID) { throw new Exception("invalid userdata for Thousandto.Core.Asset.TimelinePlayState"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Core.Asset.TimelinePlayState ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int ThousandtoCoreBaseSpawnPoolNameCode_TypeID = -1; int ThousandtoCoreBaseSpawnPoolNameCode_EnumRef = -1; public void PushThousandtoCoreBaseSpawnPoolNameCode(RealStatePtr L, Thousandto.Core.Base.SpawnPoolNameCode val) { if (ThousandtoCoreBaseSpawnPoolNameCode_TypeID == -1) { bool is_first; ThousandtoCoreBaseSpawnPoolNameCode_TypeID = getTypeId(L, typeof(Thousandto.Core.Base.SpawnPoolNameCode), out is_first); if (ThousandtoCoreBaseSpawnPoolNameCode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Thousandto.Core.Base.SpawnPoolNameCode)); ThousandtoCoreBaseSpawnPoolNameCode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThousandtoCoreBaseSpawnPoolNameCode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThousandtoCoreBaseSpawnPoolNameCode_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Thousandto.Core.Base.SpawnPoolNameCode ,value="+val); } LuaAPI.lua_getref(L, ThousandtoCoreBaseSpawnPoolNameCode_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 Thousandto.Core.Base.SpawnPoolNameCode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCoreBaseSpawnPoolNameCode_TypeID) { throw new Exception("invalid userdata for Thousandto.Core.Base.SpawnPoolNameCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Thousandto.Core.Base.SpawnPoolNameCode"); } val = (Thousandto.Core.Base.SpawnPoolNameCode)e; } else { val = (Thousandto.Core.Base.SpawnPoolNameCode)objectCasters.GetCaster(typeof(Thousandto.Core.Base.SpawnPoolNameCode))(L, index, null); } } public void UpdateThousandtoCoreBaseSpawnPoolNameCode(RealStatePtr L, int index, Thousandto.Core.Base.SpawnPoolNameCode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ThousandtoCoreBaseSpawnPoolNameCode_TypeID) { throw new Exception("invalid userdata for Thousandto.Core.Base.SpawnPoolNameCode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Thousandto.Core.Base.SpawnPoolNameCode ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int BestHTTPHTTPMethods_TypeID = -1; int BestHTTPHTTPMethods_EnumRef = -1; public void PushBestHTTPHTTPMethods(RealStatePtr L, BestHTTP.HTTPMethods val) { if (BestHTTPHTTPMethods_TypeID == -1) { bool is_first; BestHTTPHTTPMethods_TypeID = getTypeId(L, typeof(BestHTTP.HTTPMethods), out is_first); if (BestHTTPHTTPMethods_EnumRef == -1) { Utils.LoadCSTable(L, typeof(BestHTTP.HTTPMethods)); BestHTTPHTTPMethods_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, BestHTTPHTTPMethods_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, BestHTTPHTTPMethods_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for BestHTTP.HTTPMethods ,value="+val); } LuaAPI.lua_getref(L, BestHTTPHTTPMethods_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 BestHTTP.HTTPMethods val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != BestHTTPHTTPMethods_TypeID) { throw new Exception("invalid userdata for BestHTTP.HTTPMethods"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for BestHTTP.HTTPMethods"); } val = (BestHTTP.HTTPMethods)e; } else { val = (BestHTTP.HTTPMethods)objectCasters.GetCaster(typeof(BestHTTP.HTTPMethods))(L, index, null); } } public void UpdateBestHTTPHTTPMethods(RealStatePtr L, int index, BestHTTP.HTTPMethods val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != BestHTTPHTTPMethods_TypeID) { throw new Exception("invalid userdata for BestHTTP.HTTPMethods"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for BestHTTP.HTTPMethods ,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 (!CopyByValueEX.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 (!CopyByValueEX.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 (!CopyByValueEX.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 TutorialTestEnum_TypeID = -1; int TutorialTestEnum_EnumRef = -1; public void PushTutorialTestEnum(RealStatePtr L, Tutorial.TestEnum val) { if (TutorialTestEnum_TypeID == -1) { bool is_first; TutorialTestEnum_TypeID = getTypeId(L, typeof(Tutorial.TestEnum), out is_first); if (TutorialTestEnum_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Tutorial.TestEnum)); TutorialTestEnum_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, TutorialTestEnum_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, TutorialTestEnum_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Tutorial.TestEnum ,value="+val); } LuaAPI.lua_getref(L, TutorialTestEnum_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 Tutorial.TestEnum val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != TutorialTestEnum_TypeID) { throw new Exception("invalid userdata for Tutorial.TestEnum"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Tutorial.TestEnum"); } val = (Tutorial.TestEnum)e; } else { val = (Tutorial.TestEnum)objectCasters.GetCaster(typeof(Tutorial.TestEnum))(L, index, null); } } public void UpdateTutorialTestEnum(RealStatePtr L, int index, Tutorial.TestEnum val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != TutorialTestEnum_TypeID) { throw new Exception("invalid userdata for Tutorial.TestEnum"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Tutorial.TestEnum ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } int TutorialDerivedClassTestEnumInner_TypeID = -1; int TutorialDerivedClassTestEnumInner_EnumRef = -1; public void PushTutorialDerivedClassTestEnumInner(RealStatePtr L, Tutorial.DerivedClass.TestEnumInner val) { if (TutorialDerivedClassTestEnumInner_TypeID == -1) { bool is_first; TutorialDerivedClassTestEnumInner_TypeID = getTypeId(L, typeof(Tutorial.DerivedClass.TestEnumInner), out is_first); if (TutorialDerivedClassTestEnumInner_EnumRef == -1) { Utils.LoadCSTable(L, typeof(Tutorial.DerivedClass.TestEnumInner)); TutorialDerivedClassTestEnumInner_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, TutorialDerivedClassTestEnumInner_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, TutorialDerivedClassTestEnumInner_TypeID); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for Tutorial.DerivedClass.TestEnumInner ,value="+val); } LuaAPI.lua_getref(L, TutorialDerivedClassTestEnumInner_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 Tutorial.DerivedClass.TestEnumInner val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA ) { if (LuaAPI.xlua_gettypeid(L, index) != TutorialDerivedClassTestEnumInner_TypeID) { throw new Exception("invalid userdata for Tutorial.DerivedClass.TestEnumInner"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValueEX.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Tutorial.DerivedClass.TestEnumInner"); } val = (Tutorial.DerivedClass.TestEnumInner)e; } else { val = (Tutorial.DerivedClass.TestEnumInner)objectCasters.GetCaster(typeof(Tutorial.DerivedClass.TestEnumInner))(L, index, null); } } public void UpdateTutorialDerivedClassTestEnumInner(RealStatePtr L, int index, Tutorial.DerivedClass.TestEnumInner val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != TutorialDerivedClassTestEnumInner_TypeID) { throw new Exception("invalid userdata for Tutorial.DerivedClass.TestEnumInner"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValueEX.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for Tutorial.DerivedClass.TestEnumInner ,value="+val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } } // table cast optimze } public class StaticLuaCallbacksChild:StaticLuaCallbacks { internal static bool __tryArrayGet(Type type, RealStatePtr L, ObjectTranslator _translator, object obj, int index) { ObjectTranslatorChild translator = (ObjectTranslatorChild)_translator; 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(UnityEngine.Rendering.BuiltinRenderTextureType[])) { UnityEngine.Rendering.BuiltinRenderTextureType[] array = obj as UnityEngine.Rendering.BuiltinRenderTextureType[]; translator.PushUnityEngineRenderingBuiltinRenderTextureType(L, array[index]); return true; } else if (type == typeof(UnityEngine.Rendering.CameraEvent[])) { UnityEngine.Rendering.CameraEvent[] array = obj as UnityEngine.Rendering.CameraEvent[]; translator.PushUnityEngineRenderingCameraEvent(L, array[index]); return true; } else if (type == typeof(UnityEngine.SendMessageOptions[])) { UnityEngine.SendMessageOptions[] array = obj as UnityEngine.SendMessageOptions[]; translator.PushUnityEngineSendMessageOptions(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(Thousandto.Plugins.Common.UIEventDefine[])) { Thousandto.Plugins.Common.UIEventDefine[] array = obj as Thousandto.Plugins.Common.UIEventDefine[]; translator.PushThousandtoPluginsCommonUIEventDefine(L, array[index]); return true; } else if (type == typeof(Thousandto.Code.Global.LogicEventDefine[])) { Thousandto.Code.Global.LogicEventDefine[] array = obj as Thousandto.Code.Global.LogicEventDefine[]; translator.PushThousandtoCodeGlobalLogicEventDefine(L, array[index]); return true; } else if (type == typeof(Thousandto.Core.Asset.ImageTypeCode[])) { Thousandto.Core.Asset.ImageTypeCode[] array = obj as Thousandto.Core.Asset.ImageTypeCode[]; translator.PushThousandtoCoreAssetImageTypeCode(L, array[index]); return true; } else if (type == typeof(Thousandto.Core.Asset.AudioTypeCode[])) { Thousandto.Core.Asset.AudioTypeCode[] array = obj as Thousandto.Core.Asset.AudioTypeCode[]; translator.PushThousandtoCoreAssetAudioTypeCode(L, array[index]); return true; } else if (type == typeof(Thousandto.Code.Logic.MsgBoxResultCode[])) { Thousandto.Code.Logic.MsgBoxResultCode[] array = obj as Thousandto.Code.Logic.MsgBoxResultCode[]; translator.PushThousandtoCodeLogicMsgBoxResultCode(L, array[index]); return true; } else if (type == typeof(Thousandto.Code.Logic.MsgBoxIsSelect[])) { Thousandto.Code.Logic.MsgBoxIsSelect[] array = obj as Thousandto.Code.Logic.MsgBoxIsSelect[]; translator.PushThousandtoCodeLogicMsgBoxIsSelect(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(Thousandto.Code.Logic.FSkinTypeCode[])) { Thousandto.Code.Logic.FSkinTypeCode[] array = obj as Thousandto.Code.Logic.FSkinTypeCode[]; translator.PushThousandtoCodeLogicFSkinTypeCode(L, array[index]); return true; } else if (type == typeof(Thousandto.Core.Asset.ModelTypeCode[])) { Thousandto.Core.Asset.ModelTypeCode[] array = obj as Thousandto.Core.Asset.ModelTypeCode[]; translator.PushThousandtoCoreAssetModelTypeCode(L, array[index]); return true; } else if (type == typeof(Thousandto.Code.Global.AllBattleProp[])) { Thousandto.Code.Global.AllBattleProp[] array = obj as Thousandto.Code.Global.AllBattleProp[]; translator.PushThousandtoCodeGlobalAllBattleProp(L, array[index]); return true; } else if (type == typeof(Thousandto.Code.Global.FriendType[])) { Thousandto.Code.Global.FriendType[] array = obj as Thousandto.Code.Global.FriendType[]; translator.PushThousandtoCodeGlobalFriendType(L, array[index]); return true; } else if (type == typeof(Thousandto.Code.Global.PKMode[])) { Thousandto.Code.Global.PKMode[] array = obj as Thousandto.Code.Global.PKMode[]; translator.PushThousandtoCodeGlobalPKMode(L, array[index]); return true; } else if (type == typeof(UITweener.Method[])) { UITweener.Method[] array = obj as UITweener.Method[]; translator.PushUITweenerMethod(L, array[index]); return true; } else if (type == typeof(UITweener.Style[])) { UITweener.Style[] array = obj as UITweener.Style[]; translator.PushUITweenerStyle(L, array[index]); return true; } else if (type == typeof(UIWidget.Pivot[])) { UIWidget.Pivot[] array = obj as UIWidget.Pivot[]; translator.PushUIWidgetPivot(L, array[index]); return true; } else if (type == typeof(Thousandto.Code.Logic.MsgBoxInfoTypeCode[])) { Thousandto.Code.Logic.MsgBoxInfoTypeCode[] array = obj as Thousandto.Code.Logic.MsgBoxInfoTypeCode[]; translator.PushThousandtoCodeLogicMsgBoxInfoTypeCode(L, array[index]); return true; } else if (type == typeof(Thousandto.Code.Global.MapTypeDef[])) { Thousandto.Code.Global.MapTypeDef[] array = obj as Thousandto.Code.Global.MapTypeDef[]; translator.PushThousandtoCodeGlobalMapTypeDef(L, array[index]); return true; } else if (type == typeof(Thousandto.Code.Logic.SkillSelectFiledType[])) { Thousandto.Code.Logic.SkillSelectFiledType[] array = obj as Thousandto.Code.Logic.SkillSelectFiledType[]; translator.PushThousandtoCodeLogicSkillSelectFiledType(L, array[index]); return true; } else if (type == typeof(Thousandto.Code.Logic.ActionEventCode[])) { Thousandto.Code.Logic.ActionEventCode[] array = obj as Thousandto.Code.Logic.ActionEventCode[]; translator.PushThousandtoCodeLogicActionEventCode(L, array[index]); return true; } else if (type == typeof(Thousandto.Code.Global.ItemBigType[])) { Thousandto.Code.Global.ItemBigType[] array = obj as Thousandto.Code.Global.ItemBigType[]; translator.PushThousandtoCodeGlobalItemBigType(L, array[index]); return true; } else if (type == typeof(Thousandto.Code.Global.ContainerType[])) { Thousandto.Code.Global.ContainerType[] array = obj as Thousandto.Code.Global.ContainerType[]; translator.PushThousandtoCodeGlobalContainerType(L, array[index]); return true; } else if (type == typeof(Thousandto.Code.Global.ItemTipsLocation[])) { Thousandto.Code.Global.ItemTipsLocation[] array = obj as Thousandto.Code.Global.ItemTipsLocation[]; translator.PushThousandtoCodeGlobalItemTipsLocation(L, array[index]); return true; } else if (type == typeof(Thousandto.Plugins.Common.UIFormRegion[])) { Thousandto.Plugins.Common.UIFormRegion[] array = obj as Thousandto.Plugins.Common.UIFormRegion[]; translator.PushThousandtoPluginsCommonUIFormRegion(L, array[index]); return true; } else if (type == typeof(Thousandto.Code.Logic.GameSettingKeyCode[])) { Thousandto.Code.Logic.GameSettingKeyCode[] array = obj as Thousandto.Code.Logic.GameSettingKeyCode[]; translator.PushThousandtoCodeLogicGameSettingKeyCode(L, array[index]); return true; } else if (type == typeof(Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType[])) { Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType[] array = obj as Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType[]; translator.PushThousandtoCodeLogicLocalPlayerBTTaskBDTaskTargetType(L, array[index]); return true; } else if (type == typeof(UnityEngine.WrapMode[])) { UnityEngine.WrapMode[] array = obj as UnityEngine.WrapMode[]; translator.PushUnityEngineWrapMode(L, array[index]); return true; } else if (type == typeof(Thousandto.Core.Asset.AnimationPartType[])) { Thousandto.Core.Asset.AnimationPartType[] array = obj as Thousandto.Core.Asset.AnimationPartType[]; translator.PushThousandtoCoreAssetAnimationPartType(L, array[index]); return true; } else if (type == typeof(UnityEngine.AnimationCullingType[])) { UnityEngine.AnimationCullingType[] array = obj as UnityEngine.AnimationCullingType[]; translator.PushUnityEngineAnimationCullingType(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(Thousandto.Core.Asset.EntityStateID[])) { Thousandto.Core.Asset.EntityStateID[] array = obj as Thousandto.Core.Asset.EntityStateID[]; translator.PushThousandtoCoreAssetEntityStateID(L, array[index]); return true; } else if (type == typeof(Thousandto.Core.Asset.VFXPlayState[])) { Thousandto.Core.Asset.VFXPlayState[] array = obj as Thousandto.Core.Asset.VFXPlayState[]; translator.PushThousandtoCoreAssetVFXPlayState(L, array[index]); return true; } else if (type == typeof(Thousandto.Plugins.Common.UIFormType[])) { Thousandto.Plugins.Common.UIFormType[] array = obj as Thousandto.Plugins.Common.UIFormType[]; translator.PushThousandtoPluginsCommonUIFormType(L, array[index]); return true; } else if (type == typeof(Thousandto.Code.Logic.MsgInfoPriority[])) { Thousandto.Code.Logic.MsgInfoPriority[] array = obj as Thousandto.Code.Logic.MsgInfoPriority[]; translator.PushThousandtoCodeLogicMsgInfoPriority(L, array[index]); return true; } else if (type == typeof(Thousandto.Code.Global.RoleBaseAttribute[])) { Thousandto.Code.Global.RoleBaseAttribute[] array = obj as Thousandto.Code.Global.RoleBaseAttribute[]; translator.PushThousandtoCodeGlobalRoleBaseAttribute(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.Camera.StereoscopicEye[])) { UnityEngine.Camera.StereoscopicEye[] array = obj as UnityEngine.Camera.StereoscopicEye[]; translator.PushUnityEngineCameraStereoscopicEye(L, array[index]); return true; } else if (type == typeof(UIWidget.AspectRatioSource[])) { UIWidget.AspectRatioSource[] array = obj as UIWidget.AspectRatioSource[]; translator.PushUIWidgetAspectRatioSource(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(UILabel.Crispness[])) { UILabel.Crispness[] array = obj as UILabel.Crispness[]; translator.PushUILabelCrispness(L, array[index]); return true; } else if (type == typeof(UILabel.Overflow[])) { UILabel.Overflow[] array = obj as UILabel.Overflow[]; translator.PushUILabelOverflow(L, array[index]); return true; } else if (type == typeof(UILabel.Effect[])) { UILabel.Effect[] array = obj as UILabel.Effect[]; translator.PushUILabelEffect(L, array[index]); return true; } else if (type == typeof(UIInput.OnReturnKey[])) { UIInput.OnReturnKey[] array = obj as UIInput.OnReturnKey[]; translator.PushUIInputOnReturnKey(L, array[index]); return true; } else if (type == typeof(UIInput.KeyboardType[])) { UIInput.KeyboardType[] array = obj as UIInput.KeyboardType[]; translator.PushUIInputKeyboardType(L, array[index]); return true; } else if (type == typeof(UIInput.Validation[])) { UIInput.Validation[] array = obj as UIInput.Validation[]; translator.PushUIInputValidation(L, array[index]); return true; } else if (type == typeof(UIInput.InputType[])) { UIInput.InputType[] array = obj as UIInput.InputType[]; translator.PushUIInputInputType(L, array[index]); return true; } else if (type == typeof(UIPanel.RenderQueue[])) { UIPanel.RenderQueue[] array = obj as UIPanel.RenderQueue[]; translator.PushUIPanelRenderQueue(L, array[index]); return true; } else if (type == typeof(UIButtonColor.State[])) { UIButtonColor.State[] array = obj as UIButtonColor.State[]; translator.PushUIButtonColorState(L, array[index]); return true; } else if (type == typeof(UIBasicSprite.Flip[])) { UIBasicSprite.Flip[] array = obj as UIBasicSprite.Flip[]; translator.PushUIBasicSpriteFlip(L, array[index]); return true; } else if (type == typeof(UIBasicSprite.AdvancedType[])) { UIBasicSprite.AdvancedType[] array = obj as UIBasicSprite.AdvancedType[]; translator.PushUIBasicSpriteAdvancedType(L, array[index]); return true; } else if (type == typeof(UIBasicSprite.FillDirection[])) { UIBasicSprite.FillDirection[] array = obj as UIBasicSprite.FillDirection[]; translator.PushUIBasicSpriteFillDirection(L, array[index]); return true; } else if (type == typeof(UIBasicSprite.Type[])) { UIBasicSprite.Type[] array = obj as UIBasicSprite.Type[]; translator.PushUIBasicSpriteType(L, array[index]); return true; } else if (type == typeof(UIRect.AnchorUpdate[])) { UIRect.AnchorUpdate[] array = obj as UIRect.AnchorUpdate[]; translator.PushUIRectAnchorUpdate(L, array[index]); return true; } else if (type == typeof(UITable.Sorting[])) { UITable.Sorting[] array = obj as UITable.Sorting[]; translator.PushUITableSorting(L, array[index]); return true; } else if (type == typeof(UITable.Direction[])) { UITable.Direction[] array = obj as UITable.Direction[]; translator.PushUITableDirection(L, array[index]); return true; } else if (type == typeof(UIGrid.Sorting[])) { UIGrid.Sorting[] array = obj as UIGrid.Sorting[]; translator.PushUIGridSorting(L, array[index]); return true; } else if (type == typeof(UIGrid.Arrangement[])) { UIGrid.Arrangement[] array = obj as UIGrid.Arrangement[]; translator.PushUIGridArrangement(L, array[index]); return true; } else if (type == typeof(UIScrollView.ShowCondition[])) { UIScrollView.ShowCondition[] array = obj as UIScrollView.ShowCondition[]; translator.PushUIScrollViewShowCondition(L, array[index]); return true; } else if (type == typeof(UIScrollView.DragEffect[])) { UIScrollView.DragEffect[] array = obj as UIScrollView.DragEffect[]; translator.PushUIScrollViewDragEffect(L, array[index]); return true; } else if (type == typeof(UIScrollView.Movement[])) { UIScrollView.Movement[] array = obj as UIScrollView.Movement[]; translator.PushUIScrollViewMovement(L, array[index]); return true; } else if (type == typeof(UICamera.EventType[])) { UICamera.EventType[] array = obj as UICamera.EventType[]; translator.PushUICameraEventType(L, array[index]); return true; } else if (type == typeof(UICamera.ClickNotification[])) { UICamera.ClickNotification[] array = obj as UICamera.ClickNotification[]; translator.PushUICameraClickNotification(L, array[index]); return true; } else if (type == typeof(UICamera.ControlScheme[])) { UICamera.ControlScheme[] array = obj as UICamera.ControlScheme[]; translator.PushUICameraControlScheme(L, array[index]); return true; } else if (type == typeof(UIProgressBar.FillDirection[])) { UIProgressBar.FillDirection[] array = obj as UIProgressBar.FillDirection[]; translator.PushUIProgressBarFillDirection(L, array[index]); return true; } else if (type == typeof(Thousandto.Core.Asset.Slot[])) { Thousandto.Core.Asset.Slot[] array = obj as Thousandto.Core.Asset.Slot[]; translator.PushThousandtoCoreAssetSlot(L, array[index]); return true; } else if (type == typeof(Thousandto.Core.Asset.TimelinePlayState[])) { Thousandto.Core.Asset.TimelinePlayState[] array = obj as Thousandto.Core.Asset.TimelinePlayState[]; translator.PushThousandtoCoreAssetTimelinePlayState(L, array[index]); return true; } else if (type == typeof(Thousandto.Core.Base.SpawnPoolNameCode[])) { Thousandto.Core.Base.SpawnPoolNameCode[] array = obj as Thousandto.Core.Base.SpawnPoolNameCode[]; translator.PushThousandtoCoreBaseSpawnPoolNameCode(L, array[index]); return true; } else if (type == typeof(BestHTTP.HTTPMethods[])) { BestHTTP.HTTPMethods[] array = obj as BestHTTP.HTTPMethods[]; translator.PushBestHTTPHTTPMethods(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(Tutorial.TestEnum[])) { Tutorial.TestEnum[] array = obj as Tutorial.TestEnum[]; translator.PushTutorialTestEnum(L, array[index]); return true; } else if (type == typeof(Tutorial.DerivedClass.TestEnumInner[])) { Tutorial.DerivedClass.TestEnumInner[] array = obj as Tutorial.DerivedClass.TestEnumInner[]; translator.PushTutorialDerivedClassTestEnumInner(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) { ObjectTranslatorChild translator = (ObjectTranslatorChild)_translator; 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(UnityEngine.Rendering.BuiltinRenderTextureType[])) { UnityEngine.Rendering.BuiltinRenderTextureType[] array = obj as UnityEngine.Rendering.BuiltinRenderTextureType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.Rendering.CameraEvent[])) { UnityEngine.Rendering.CameraEvent[] array = obj as UnityEngine.Rendering.CameraEvent[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.SendMessageOptions[])) { UnityEngine.SendMessageOptions[] array = obj as UnityEngine.SendMessageOptions[]; 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(Thousandto.Plugins.Common.UIEventDefine[])) { Thousandto.Plugins.Common.UIEventDefine[] array = obj as Thousandto.Plugins.Common.UIEventDefine[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Code.Global.LogicEventDefine[])) { Thousandto.Code.Global.LogicEventDefine[] array = obj as Thousandto.Code.Global.LogicEventDefine[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Core.Asset.ImageTypeCode[])) { Thousandto.Core.Asset.ImageTypeCode[] array = obj as Thousandto.Core.Asset.ImageTypeCode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Core.Asset.AudioTypeCode[])) { Thousandto.Core.Asset.AudioTypeCode[] array = obj as Thousandto.Core.Asset.AudioTypeCode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Code.Logic.MsgBoxResultCode[])) { Thousandto.Code.Logic.MsgBoxResultCode[] array = obj as Thousandto.Code.Logic.MsgBoxResultCode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Code.Logic.MsgBoxIsSelect[])) { Thousandto.Code.Logic.MsgBoxIsSelect[] array = obj as Thousandto.Code.Logic.MsgBoxIsSelect[]; 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(Thousandto.Code.Logic.FSkinTypeCode[])) { Thousandto.Code.Logic.FSkinTypeCode[] array = obj as Thousandto.Code.Logic.FSkinTypeCode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Core.Asset.ModelTypeCode[])) { Thousandto.Core.Asset.ModelTypeCode[] array = obj as Thousandto.Core.Asset.ModelTypeCode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Code.Global.AllBattleProp[])) { Thousandto.Code.Global.AllBattleProp[] array = obj as Thousandto.Code.Global.AllBattleProp[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Code.Global.FriendType[])) { Thousandto.Code.Global.FriendType[] array = obj as Thousandto.Code.Global.FriendType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Code.Global.PKMode[])) { Thousandto.Code.Global.PKMode[] array = obj as Thousandto.Code.Global.PKMode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UITweener.Method[])) { UITweener.Method[] array = obj as UITweener.Method[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UITweener.Style[])) { UITweener.Style[] array = obj as UITweener.Style[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIWidget.Pivot[])) { UIWidget.Pivot[] array = obj as UIWidget.Pivot[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Code.Logic.MsgBoxInfoTypeCode[])) { Thousandto.Code.Logic.MsgBoxInfoTypeCode[] array = obj as Thousandto.Code.Logic.MsgBoxInfoTypeCode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Code.Global.MapTypeDef[])) { Thousandto.Code.Global.MapTypeDef[] array = obj as Thousandto.Code.Global.MapTypeDef[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Code.Logic.SkillSelectFiledType[])) { Thousandto.Code.Logic.SkillSelectFiledType[] array = obj as Thousandto.Code.Logic.SkillSelectFiledType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Code.Logic.ActionEventCode[])) { Thousandto.Code.Logic.ActionEventCode[] array = obj as Thousandto.Code.Logic.ActionEventCode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Code.Global.ItemBigType[])) { Thousandto.Code.Global.ItemBigType[] array = obj as Thousandto.Code.Global.ItemBigType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Code.Global.ContainerType[])) { Thousandto.Code.Global.ContainerType[] array = obj as Thousandto.Code.Global.ContainerType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Code.Global.ItemTipsLocation[])) { Thousandto.Code.Global.ItemTipsLocation[] array = obj as Thousandto.Code.Global.ItemTipsLocation[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Plugins.Common.UIFormRegion[])) { Thousandto.Plugins.Common.UIFormRegion[] array = obj as Thousandto.Plugins.Common.UIFormRegion[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Code.Logic.GameSettingKeyCode[])) { Thousandto.Code.Logic.GameSettingKeyCode[] array = obj as Thousandto.Code.Logic.GameSettingKeyCode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType[])) { Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType[] array = obj as Thousandto.Code.Logic.LocalPlayerBT.TaskBD.TaskTargetType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.WrapMode[])) { UnityEngine.WrapMode[] array = obj as UnityEngine.WrapMode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Core.Asset.AnimationPartType[])) { Thousandto.Core.Asset.AnimationPartType[] array = obj as Thousandto.Core.Asset.AnimationPartType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UnityEngine.AnimationCullingType[])) { UnityEngine.AnimationCullingType[] array = obj as UnityEngine.AnimationCullingType[]; 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(Thousandto.Core.Asset.EntityStateID[])) { Thousandto.Core.Asset.EntityStateID[] array = obj as Thousandto.Core.Asset.EntityStateID[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Core.Asset.VFXPlayState[])) { Thousandto.Core.Asset.VFXPlayState[] array = obj as Thousandto.Core.Asset.VFXPlayState[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Plugins.Common.UIFormType[])) { Thousandto.Plugins.Common.UIFormType[] array = obj as Thousandto.Plugins.Common.UIFormType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Code.Logic.MsgInfoPriority[])) { Thousandto.Code.Logic.MsgInfoPriority[] array = obj as Thousandto.Code.Logic.MsgInfoPriority[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Code.Global.RoleBaseAttribute[])) { Thousandto.Code.Global.RoleBaseAttribute[] array = obj as Thousandto.Code.Global.RoleBaseAttribute[]; 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.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(UIWidget.AspectRatioSource[])) { UIWidget.AspectRatioSource[] array = obj as UIWidget.AspectRatioSource[]; 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(UILabel.Crispness[])) { UILabel.Crispness[] array = obj as UILabel.Crispness[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UILabel.Overflow[])) { UILabel.Overflow[] array = obj as UILabel.Overflow[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UILabel.Effect[])) { UILabel.Effect[] array = obj as UILabel.Effect[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIInput.OnReturnKey[])) { UIInput.OnReturnKey[] array = obj as UIInput.OnReturnKey[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIInput.KeyboardType[])) { UIInput.KeyboardType[] array = obj as UIInput.KeyboardType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIInput.Validation[])) { UIInput.Validation[] array = obj as UIInput.Validation[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIInput.InputType[])) { UIInput.InputType[] array = obj as UIInput.InputType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIPanel.RenderQueue[])) { UIPanel.RenderQueue[] array = obj as UIPanel.RenderQueue[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIButtonColor.State[])) { UIButtonColor.State[] array = obj as UIButtonColor.State[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIBasicSprite.Flip[])) { UIBasicSprite.Flip[] array = obj as UIBasicSprite.Flip[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIBasicSprite.AdvancedType[])) { UIBasicSprite.AdvancedType[] array = obj as UIBasicSprite.AdvancedType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIBasicSprite.FillDirection[])) { UIBasicSprite.FillDirection[] array = obj as UIBasicSprite.FillDirection[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIBasicSprite.Type[])) { UIBasicSprite.Type[] array = obj as UIBasicSprite.Type[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIRect.AnchorUpdate[])) { UIRect.AnchorUpdate[] array = obj as UIRect.AnchorUpdate[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UITable.Sorting[])) { UITable.Sorting[] array = obj as UITable.Sorting[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UITable.Direction[])) { UITable.Direction[] array = obj as UITable.Direction[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIGrid.Sorting[])) { UIGrid.Sorting[] array = obj as UIGrid.Sorting[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIGrid.Arrangement[])) { UIGrid.Arrangement[] array = obj as UIGrid.Arrangement[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIScrollView.ShowCondition[])) { UIScrollView.ShowCondition[] array = obj as UIScrollView.ShowCondition[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIScrollView.DragEffect[])) { UIScrollView.DragEffect[] array = obj as UIScrollView.DragEffect[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIScrollView.Movement[])) { UIScrollView.Movement[] array = obj as UIScrollView.Movement[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UICamera.EventType[])) { UICamera.EventType[] array = obj as UICamera.EventType[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UICamera.ClickNotification[])) { UICamera.ClickNotification[] array = obj as UICamera.ClickNotification[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UICamera.ControlScheme[])) { UICamera.ControlScheme[] array = obj as UICamera.ControlScheme[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(UIProgressBar.FillDirection[])) { UIProgressBar.FillDirection[] array = obj as UIProgressBar.FillDirection[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Core.Asset.Slot[])) { Thousandto.Core.Asset.Slot[] array = obj as Thousandto.Core.Asset.Slot[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Core.Asset.TimelinePlayState[])) { Thousandto.Core.Asset.TimelinePlayState[] array = obj as Thousandto.Core.Asset.TimelinePlayState[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Thousandto.Core.Base.SpawnPoolNameCode[])) { Thousandto.Core.Base.SpawnPoolNameCode[] array = obj as Thousandto.Core.Base.SpawnPoolNameCode[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(BestHTTP.HTTPMethods[])) { BestHTTP.HTTPMethods[] array = obj as BestHTTP.HTTPMethods[]; 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(Tutorial.TestEnum[])) { Tutorial.TestEnum[] array = obj as Tutorial.TestEnum[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } else if (type == typeof(Tutorial.DerivedClass.TestEnumInner[])) { Tutorial.DerivedClass.TestEnumInner[] array = obj as Tutorial.DerivedClass.TestEnumInner[]; translator.Get(L, obj_idx, out array[array_idx]); return true; } return false; } } }